Commit b18d327a authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix returned position scale in graph_draw()

This is a workaround for a behaviour of graphviz which is not well
parent 25e31f3d
......@@ -421,6 +421,10 @@ def graph_draw(g, pos=None, size=(15, 15), pin=False, layout= "neato",
gv.render(gvg, output_format, output)
# I don't get this, but it seems necessary
pos[0].get_array()[:] /= 100
pos[1].get_array()[:] /= 100
if returngv:
return pos, gv
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment