On 06.10.2014 17:02, luistavares wrote:
Ok Tiago,
Here is the problem, the root node is located in a different place each time I run the code. See the image (root node is in red).
I wanna fix the place for the root node. For example, it should always be located at the bottom of the result.
The "pin" parameter does exactly that, it allows you to fix the absolute position of selected nodes. What it does not do is fix the relative position to other nodes, which seems to be what you want. Unfortunately there is no easy way to do that, since the nodes which are unpinned are allowed to be placed in any way. Perhaps what you should do is to do an interactive layout with graph_draw(), and position/rotate the layout by hand. Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>