@@ -1158,16 +1158,22 @@ def set_prop_cycle(self, *args, **kwargs):
11581158 Call signatures::
11591159
11601160 set_prop_cycle(cycler)
1161- set_prop_cycle(label, values)
11621161 set_prop_cycle(label=values[, label2=values2[, ...]])
1162+ set_prop_cycle(label, values)
11631163
1164- Form 1 simply sets given `Cycler` object.
1164+ Form 1 sets given `~cycler. Cycler` object.
11651165
1166- Form 2 creates and sets a `Cycler` from a label and an iterable.
1166+ Form 2 creates a `~cycler.Cycler` which cycles over one or more
1167+ properties simultaneously and set it as the property cycle of the
1168+ axes. If multiple properties are given, their value lists must have
1169+ the same length. This is just a shortcut for explicitly creating a
1170+ cycler and passing it to the function, i.e. it's short for
1171+ ``set_prop_cycle(cycler(label=values label2=values2, ...))``.
11671172
1168- Form 3 composes and sets a `Cycler` as an inner product of the
1169- pairs of keyword arguments. In other words, all of the
1170- iterables are cycled simultaneously, as if through zip().
1173+ Form 3 creates a `~cycler.Cycler` for a single property and set it
1174+ as the property cycle of the axes. This form exists for compatibility
1175+ with the original `cycler.cycler` interface. Its use is discouraged
1176+ in favor of the kwarg form, i.e. ``set_prop_cycle(label=values)``.
11711177
11721178 Parameters
11731179 ----------
@@ -1188,8 +1194,7 @@ def set_prop_cycle(self, *args, **kwargs):
11881194 --------
11891195 Setting the property cycle for a single property:
11901196
1191- >>> ax.set_prop_cycle(color=['red', 'green', 'blue']) # or
1192- >>> ax.set_prop_cycle('color', ['red', 'green', 'blue'])
1197+ >>> ax.set_prop_cycle(color=['red', 'green', 'blue'])
11931198
11941199 Setting the property cycle for simultaneously cycling over multiple
11951200 properties (e.g. red circle, green plus, blue cross):
@@ -1200,7 +1205,9 @@ def set_prop_cycle(self, *args, **kwargs):
12001205 See Also
12011206 --------
12021207 matplotlib.rcsetup.cycler
1203- Convenience function for creating your own cyclers.
1208+ Convenience function for creating validated cyclers for properties.
1209+ cycler.cycler
1210+ The original function for creating unvalidated cyclers.
12041211
12051212 """
12061213 if args and kwargs :
0 commit comments