Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
fbb9adfb
Commit
fbb9adfb
authored
Mar 21, 2014
by
Joel Moberg
Committed by
Tiago Peixoto
Mar 25, 2014
Browse files
Set up default for parameter inline in grap_draw()
parent
de6fbcc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/draw/cairo_draw.py
View file @
fbb9adfb
...
...
@@ -39,6 +39,7 @@ try:
import
matplotlib.colors
from
matplotlib.cbook
import
flatten
default_cm
=
matplotlib
.
cm
.
jet
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
=
Fals
e
,
output
=
None
,
fmt
=
"auto"
,
**
kwargs
):
inline
=
is_draw_inlin
e
,
output
=
None
,
fmt
=
"auto"
,
**
kwargs
):
r
"""Draw a graph to screen or to a file using :mod:`cairo`.
Parameters
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment