@@ -1160,16 +1160,22 @@ def set_prop_cycle(self, *args, **kwargs):
11601160 Call signatures::
11611161
11621162 set_prop_cycle(cycler)
1163- set_prop_cycle(label, values)
11641163 set_prop_cycle(label=values[, label2=values2[, ...]])
1164+ set_prop_cycle(label, values)
11651165
1166- Form 1 simply sets given `Cycler` object.
1166+ Form 1 sets given `~cycler. Cycler` object.
11671167
1168- Form 2 creates and sets a `Cycler` from a label and an iterable.
1168+ Form 2 creates a `~cycler.Cycler` which cycles over one or more
1169+ properties simultaneously and set it as the property cycle of the
1170+ axes. If multiple properties are given, their value lists must have
1171+ the same length. This is just a shortcut for explicitly creating a
1172+ cycler and passing it to the function, i.e. it's short for
1173+ ``set_prop_cycle(cycler(label=values label2=values2, ...))``.
11691174
1170- Form 3 composes and sets a `Cycler` as an inner product of the
1171- pairs of keyword arguments. In other words, all of the
1172- iterables are cycled simultaneously, as if through zip().
1175+ Form 3 creates a `~cycler.Cycler` for a single property and set it
1176+ as the property cycle of the axes. This form exists for compatibility
1177+ with the original `cycler.cycler` interface. Its use is discouraged
1178+ in favor of the kwarg form, i.e. ``set_prop_cycle(label=values)``.
11731179
11741180 Parameters
11751181 ----------
@@ -1190,8 +1196,7 @@ def set_prop_cycle(self, *args, **kwargs):
11901196 --------
11911197 Setting the property cycle for a single property:
11921198
1193- >>> ax.set_prop_cycle(color=['red', 'green', 'blue']) # or
1194- >>> ax.set_prop_cycle('color', ['red', 'green', 'blue'])
1199+ >>> ax.set_prop_cycle(color=['red', 'green', 'blue'])
11951200
11961201 Setting the property cycle for simultaneously cycling over multiple
11971202 properties (e.g. red circle, green plus, blue cross):
@@ -1202,7 +1207,9 @@ def set_prop_cycle(self, *args, **kwargs):
12021207 See Also
12031208 --------
12041209 matplotlib.rcsetup.cycler
1205- Convenience function for creating your own cyclers.
1210+ Convenience function for creating validated cyclers for properties.
1211+ cycler.cycler
1212+ The original function for creating unvalidated cyclers.
12061213
12071214 """
12081215 if args and kwargs :
0 commit comments