Skip to content

Commit

Permalink
Merge pull request #5605 from sjpfenninger/stackplot-cycler
Browse files Browse the repository at this point in the history
Fix DeprecationWarning in stackplot.py
  • Loading branch information
tacaswell committed Dec 3, 2015
2 parents 9a7dfd7 + d9954e0 commit 40b7837
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/matplotlib/stackplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from matplotlib.externals import six
from matplotlib.externals.six.moves import xrange

from cycler import cycler
import numpy as np

__all__ = ['stackplot']
Expand Down Expand Up @@ -63,7 +64,7 @@ def stackplot(axes, x, *args, **kwargs):

colors = kwargs.pop('colors', None)
if colors is not None:
axes.set_color_cycle(colors)
axes.set_prop_cycle(cycler('color', colors))

baseline = kwargs.pop('baseline', 'zero')
# Assume data passed has not been 'stacked', so stack it here.
Expand Down

0 comments on commit 40b7837

Please sign in to comment.