Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xavier Garrido
CAMEL
Commits
0aedce8b
Commit
0aedce8b
authored
May 29, 2017
by
Matthieu Tristram
Browse files
Update color def for matplotlib >= 1.5
parent
d343e429
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
work/tools/python/camel.py
work/tools/python/camel.py
+2
-2
No files found.
work/tools/python/camel.py
View file @
0aedce8b
...
...
@@ -1723,7 +1723,7 @@ class prof:
ax
=
plt
.
gca
()
from
matplotlib
import
__version__
if
__version__
>=
'1.5'
:
colordef
=
next
(
ax
.
_get_lines
.
prop_cycler
)
colordef
=
next
(
ax
.
_get_lines
.
prop_cycler
)
[
'color'
]
else
:
colordef
=
next
(
ax
.
_get_lines
.
color_cycle
)
...
...
@@ -1733,7 +1733,7 @@ class prof:
marker
=
kwargs
.
pop
(
"marker"
,
'o'
)
if
extent
==
None
:
extent
=
(
self
.
_v
[
0
],
self
.
_v
[
-
1
])
print
(
color
)
#plot profile
refmin
=
self
.
ymin
...
...
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