Hi there, I'm working with the "graph_tool.generation.lattice" on a 2D lattice visualization. Can you help me to draw a lattice graph, as in the documentation, but not rotated ? Thanks in advance. -- View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/... Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.
On 17.12.2014 23:10, marklasta wrote:
Hi there,
I'm working with the "graph_tool.generation.lattice" on a 2D lattice visualization.
Can you help me to draw a lattice graph, as in the documentation, but not rotated ?
g = lattice([50, 50]) idx = g.vertex_index.copy() x = g.new_vertex_property("double") y = g.new_vertex_property("double") x.a = idx.a % 50 y.a = idx.a // 50 pos = group_vector_property([x,y]) graph_draw(g, pos) Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
participants (2)
-
marklasta -
Tiago de Paula Peixoto