我尝试用Python生成鱼骨图(因果图或Ishikawa图)。有没有办法让它更像标准鱼骨图?在
from graphviz import Digraph
A=[('HW', 'Root'), ('SW', 'Root'),
('Electric', 'HW'), ('ink', 'HW'), ('windows', 'SW'), ('Drivers', 'SW'),
('Yellow', 'ink'), ('blue', 'ink'), ('pink', 'ink'),
('FE', 'Drivers'), ('BE', 'Drivers')]
e = Digraph()
e.attr(rankdir='LR')
for a in A:
e.node(a[0])
e.edge(a[0], a[1])
e.view()
目前没有回答
相关问题 更多 >
编程相关推荐