I wanted to plot labels around the state.draw plot in a circular way. For this I need the position on the circle in order to calculate the angle.

If I use the hierarchical tree layout, blocks are then switched in the plot and the angles are wrong. 

My solution is using the state.draw function, which returns the positions first, then calculate the angles for the labels and then plot them again.


Best

Philipp



From: Tiago Peixoto [via Main discussion list for the graph-tool project] <ml-node+[hidden email]>
Sent: Friday, November 4, 2016 1:05 PM
To: Lorenz, Philipp Gert Josef
Subject: Re: Vertex Position for plotting NestedBlockState
 
On 01.11.2016 11:23, philipplorenz wrote:
>  Is there a possibility to get the nodes Positions from a NestedBlockState
> Object?

There are no node positions in NestedBlockState. Could you be more specific
about what you want to achieve?


--
Tiago de Paula Peixoto <[hidden email]>
_______________________________________________
graph-tool mailing list
[hidden email]
https://lists.skewed.de/mailman/listinfo/graph-tool
--
Tiago de Paula Peixoto <[hidden email]>



If you reply to this email, your message will be added to the discussion below:
http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/Vertex-Position-for-plotting-NestedBlockState-tp4026816p4026820.html
To unsubscribe from Vertex Position for plotting NestedBlockState, click here.
NAML


View this message in context: Re: Vertex Position for plotting NestedBlockState
Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.