On 11/30/2012 07:06 PM, alepulver wrote:
I thought that graph_draw() used sfdp_layout() in case "pos" wasn't supplied (i.e. None), so I used: pos = gt.random_layout(polysemy) gt.graph_draw(polysemy, pos=pos, output_size=(10000,10000), output='ejercicio_5_rnd.png') Expecting it would take less time.
It should!
Maybe this paragraph in the documentation should be changed: "Vector-valued vertex property map containing the x and y coordinates of the vertices. If not given, it will be computed using sfdp_layout()."
But this is correct. Does it really take five hours if you supply pos = random_layout() ?!
Also I would like to see nodes expanded through the canvas, because they are densely packed into a corner. What is the option for controlling this?
The bounding box is calculated automatically if fit_view=True. If you set it False, the positions will be considered to correspond to the output format units (pixels in case of png, points in case of pdf, etc). If you are getting strange-looking results with fit_view=True, then please send me an example. Cheers, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>