Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a472dab

Browse files
committed
Use deprecated decorator for Axes.set_color_style
1 parent e54939a commit a472dab

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,16 +1219,16 @@ def set_prop_cycle(self, *args, **kwargs):
12191219
self._get_lines.set_prop_cycle(prop_cycle)
12201220
self._get_patches_for_fill.set_prop_cycle(prop_cycle)
12211221

1222+
@cbook.deprecated('1.5', alternative='`.set_prop_cycle`')
12221223
def set_color_cycle(self, clist):
12231224
"""
12241225
Set the color cycle for any future plot commands on this Axes.
12251226
1226-
*clist* is a list of mpl color specifiers.
1227-
1228-
.. deprecated:: 1.5
1227+
Parameters
1228+
----------
1229+
clist
1230+
A list of mpl color specifiers.
12291231
"""
1230-
cbook.warn_deprecated(
1231-
'1.5', name='set_color_cycle', alternative='set_prop_cycle')
12321232
if clist is None:
12331233
# Calling set_color_cycle() or set_prop_cycle() with None
12341234
# effectively resets the cycle, but you can't do

0 commit comments

Comments
 (0)