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

graph_draw(): Fix default layout when mplfig is not None

This fixes issue #345
parent d8d7bf9e
...@@ -1010,7 +1010,8 @@ def graph_draw(g, pos=None, vprops=None, eprops=None, vorder=None, eorder=None, ...@@ -1010,7 +1010,8 @@ def graph_draw(g, pos=None, vprops=None, eprops=None, vorder=None, eorder=None,
if pos is None: if pos is None:
if (g.num_vertices() > 2 and output is None and if (g.num_vertices() > 2 and output is None and
not inline and kwargs.get("update_layout", True)): not inline and kwargs.get("update_layout", True) and
mplfig is None):
L = np.sqrt(g.num_vertices()) L = np.sqrt(g.num_vertices())
pos = random_layout(g, [L, L]) pos = random_layout(g, [L, L])
if g.num_vertices() > 1000: if g.num_vertices() > 1000:
......
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