Commit fbb9adfb authored by Joel Moberg's avatar Joel Moberg Committed by Tiago Peixoto
Browse files

Set up default for parameter inline in grap_draw()

parent de6fbcc5
......@@ -39,6 +39,7 @@ try:
import matplotlib.colors
from matplotlib.cbook import flatten
default_cm =
is_draw_inline = 'inline' in matplotlib.get_backend()
except ImportError:
msg = "Error importing matplotlib module. Graph drawing will not work."
warnings.filterwarnings("always", msg, ImportWarning)
......@@ -535,7 +536,7 @@ def auto_colors(g, bg, pos, back):
def graph_draw(g, pos=None, vprops=None, eprops=None, vorder=None, eorder=None,
nodesfirst=False, output_size=(600, 600), fit_view=True,
inline=False, output=None, fmt="auto", **kwargs):
inline=is_draw_inline, output=None, fmt="auto", **kwargs):
r"""Draw a graph to screen or to a file using :mod:`cairo`.
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