@@ -1186,16 +1186,22 @@ def set_prop_cycle(self, *args, **kwargs):
11861186 Call signatures::
11871187
11881188 set_prop_cycle(cycler)
1189- set_prop_cycle(label, values)
11901189 set_prop_cycle(label=values[, label2=values2[, ...]])
1190+ set_prop_cycle(label, values)
11911191
1192- Form 1 simply sets given `Cycler` object.
1192+ Form 1 sets given `~cycler. Cycler` object.
11931193
1194- Form 2 creates and sets a `Cycler` from a label and an iterable.
1194+ Form 2 creates a `~cycler.Cycler` which cycles over one or more
1195+ properties simultaneously and set it as the property cycle of the
1196+ axes. If multiple properties are given, their value lists must have
1197+ the same length. This is just a shortcut for explicitly creating a
1198+ cycler and passing it to the function, i.e. it's short for
1199+ ``set_prop_cycle(cycler(label=values label2=values2, ...))``.
11951200
1196- Form 3 composes and sets a `Cycler` as an inner product of the
1197- pairs of keyword arguments. In other words, all of the
1198- iterables are cycled simultaneously, as if through zip().
1201+ Form 3 creates a `~cycler.Cycler` for a single property and set it
1202+ as the property cycle of the axes. This form exists for compatibility
1203+ with the original `cycler.cycler` interface. Its use is discouraged
1204+ in favor of the kwarg form, i.e. ``set_prop_cycle(label=values)``.
11991205
12001206 Parameters
12011207 ----------
@@ -1216,8 +1222,7 @@ def set_prop_cycle(self, *args, **kwargs):
12161222 --------
12171223 Setting the property cycle for a single property:
12181224
1219- >>> ax.set_prop_cycle(color=['red', 'green', 'blue']) # or
1220- >>> ax.set_prop_cycle('color', ['red', 'green', 'blue'])
1225+ >>> ax.set_prop_cycle(color=['red', 'green', 'blue'])
12211226
12221227 Setting the property cycle for simultaneously cycling over multiple
12231228 properties (e.g. red circle, green plus, blue cross):
@@ -1228,7 +1233,9 @@ def set_prop_cycle(self, *args, **kwargs):
12281233 See Also
12291234 --------
12301235 matplotlib.rcsetup.cycler
1231- Convenience function for creating your own cyclers.
1236+ Convenience function for creating validated cyclers for properties.
1237+ cycler.cycler
1238+ The original function for creating unvalidated cyclers.
12321239
12331240 """
12341241 if args and kwargs :
0 commit comments