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

Skip to content

Commit 9a31950

Browse files
committed
some simplification and doc-fixes
1 parent 53f1ff2 commit 9a31950

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

lib/matplotlib/axes/_base.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,9 +1057,9 @@ def clear(self):
10571057

10581058
def set_prop_cycle(self, prop_cycle):
10591059
"""
1060-
Set the prop cycle for any future plot commands on this Axes.
1060+
Set the property cycle for any future plot commands on this Axes.
10611061
1062-
*prop_cycle* is a :class:Cycler object.
1062+
*prop_cycle* is a :class:`Cycler` object.
10631063
Can also be `None` to reset to the cycle defined by the
10641064
current style.
10651065
"""
@@ -1076,9 +1076,7 @@ def set_color_cycle(self, clist):
10761076
"""
10771077
cbook.warn_deprecated(
10781078
'1.5', name='set_color_cycle', alternative='set_prop_cycle')
1079-
prop_cycler = cycler('color', clist)
1080-
self._get_lines.set_prop_cycle(prop_cycler)
1081-
self._get_patches_for_fill.set_prop_cycle(prop_cycler)
1079+
self.set_prop_cycle(cycler('color', clist))
10821080

10831081
def ishold(self):
10841082
"""return the HOLD status of the axes"""

0 commit comments

Comments
 (0)