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
b2b27965
Commit
b2b27965
authored
May 29, 2012
by
Tiago Peixoto
Browse files
Fix trivial matplotlib import bug
parent
cba9cf2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/draw/cairo_draw.py
View file @
b2b27965
...
@@ -32,9 +32,8 @@ except ImportError:
...
@@ -32,9 +32,8 @@ except ImportError:
raise
raise
try
:
try
:
import
matplotlib
import
matplotlib.cm
#import matplotlib.cm
import
matplotlib.colors
#import matplotlib.colors
except
ImportError
:
except
ImportError
:
msg
=
"Error importing matplotlib module. Graph drawing will not work."
msg
=
"Error importing matplotlib module. Graph drawing will not work."
warnings
.
filterwarnings
(
"always"
,
msg
,
ImportWarning
)
warnings
.
filterwarnings
(
"always"
,
msg
,
ImportWarning
)
...
...
Write
Preview
Markdown
is supported
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