18 Dec
2014
18 Dec
'14
12:32 p.m.
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>