Commit 78337816 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix bug in graph_draw() with new numpy

parent 19c9b394
Pipeline #52 passed with stage
...@@ -1020,7 +1020,7 @@ def graph_draw(g, pos=None, vprops=None, eprops=None, vorder=None, eorder=None, ...@@ -1020,7 +1020,7 @@ def graph_draw(g, pos=None, vprops=None, eprops=None, vorder=None, eorder=None,
if "pen_width" in eprops and "marker_size" not in eprops: if "pen_width" in eprops and "marker_size" not in eprops:
pw = eprops["pen_width"] pw = eprops["pen_width"]
if isinstance(pw, PropertyMap): if isinstance(pw, PropertyMap):
pw = pw.copy() pw = pw.copy("double")
pw.fa *= 2.75 pw.fa *= 2.75
eprops["marker_size"] = pw eprops["marker_size"] = pw
else: else:
...@@ -1029,7 +1029,7 @@ def graph_draw(g, pos=None, vprops=None, eprops=None, vorder=None, eorder=None, ...@@ -1029,7 +1029,7 @@ def graph_draw(g, pos=None, vprops=None, eprops=None, vorder=None, eorder=None,
if "text" in eprops and "text_distance" not in eprops and "pen_width" in eprops: if "text" in eprops and "text_distance" not in eprops and "pen_width" in eprops:
pw = eprops["pen_width"] pw = eprops["pen_width"]
if isinstance(pw, PropertyMap): if isinstance(pw, PropertyMap):
pw = pw.copy() pw = pw.copy("double")
pw.fa *= 2 pw.fa *= 2
eprops["text_distance"] = pw eprops["text_distance"] = pw
else: else:
......
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