I need to generate a chart. I use pydot
library. My code is:
import pydot
people = ['person_%d'%i for i in range(10)]
graph = pydot.Dot(graph_type='graph', rankdir='LR', splines='ortho')
# create nodes for people
node_list = []
for person in people:
node = pydot.Node(person, shape="record", style="filled", fillcolor="#E8E8E8")
node_list.append(node)
# get parent node
parent_node = node_list.pop(0)
# create edges
for node in node_list:
edge = pydot.Edge(parent_node, node, color="#B6B6B6")
graph.add_edge(edge)
graph.write_png('chart.png')
And the result of the executing this code is:
http://i49.tinypic.com/keu7mw.png
So what I need to change to have the same(similar) result as on the image below: