Commit 26553a42 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix bug in cairo_draw() with vertex_index as attribute

parent afae7aa1
......@@ -402,7 +402,10 @@ def _convert(attr, val, cmap, pmap_default=False, g=None, k=None):
vrange = [val.fa.min(), val.fa.max()]
except ValueError:
val_ = val.copy("int64_t")
#vertex index
vrange = [int(g.vertex(0, use_index=False)),
int(g.vertex(g.num_vertices() - 1,
cnorm = matplotlib.colors.Normalize(vmin=vrange[0],
g = val.get_graph()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment