Commit 835aa308 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Remove unnecessary warnings in graph_draw() with inline=True

parent 0f58db6d
...@@ -810,7 +810,7 @@ def graph_draw(g, pos=None, vprops=None, eprops=None, vorder=None, eorder=None, ...@@ -810,7 +810,7 @@ def graph_draw(g, pos=None, vprops=None, eprops=None, vorder=None, eorder=None,
pos = sfdp_layout(g) pos = sfdp_layout(g)
else: else:
_check_prop_vector(pos, name="pos", floating=True) _check_prop_vector(pos, name="pos", floating=True)
if output is None: if output is None and not inline:
if "layout_K" not in kwargs: if "layout_K" not in kwargs:
kwargs["layout_K"] = _avg_edge_distance(g, pos) kwargs["layout_K"] = _avg_edge_distance(g, pos)
if "update_layout" not in kwargs: if "update_layout" not in kwargs:
...@@ -918,6 +918,7 @@ def graph_draw(g, pos=None, vprops=None, eprops=None, vorder=None, eorder=None, ...@@ -918,6 +918,7 @@ def graph_draw(g, pos=None, vprops=None, eprops=None, vorder=None, eorder=None,
cairo_draw(g, pos, cr, vprops, eprops, vorder, eorder, cairo_draw(g, pos, cr, vprops, eprops, vorder, eorder,
nodesfirst, **kwargs) nodesfirst, **kwargs)
if fmt == "png": if fmt == "png":
srf.write_to_png(out) srf.write_to_png(out)
......
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