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).
>
> <http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/file/n4025780/example.png>
>
> 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 <[email protected]>

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
graph-tool mailing list
[email protected]
http://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to