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

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):
try:
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,
use_index=False))]
cnorm = matplotlib.colors.Normalize(vmin=vrange[0],
vmax=vrange[1])
g = val.get_graph()
......
Markdown is supported
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