Commit 0aedce8b authored by Matthieu Tristram's avatar Matthieu Tristram
Browse files

Update color def for matplotlib >= 1.5

parent d343e429
......@@ -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
......
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