matplotlib 3.5.1

ParametersReturnsBackRef
cycler(*args, **kwargs)

Call signatures:

cycler(cycler)
cycler(label=values[, label2=values2[, ...]])
cycler(label, values)

Form 1 copies a given Cycler object.

Form 2 creates a Cycler which cycles over one or more properties simultaneously. If multiple properties are given, their value lists must have the same length.

Form 3 creates a Cycler for a single property. This form exists for compatibility with the original cycler. Its use is discouraged in favor of the kwarg form, i.e. cycler(label=values) .

Parameters

cycler : Cycler

Copy constructor for Cycler.

label : str

The property key. Must be a valid .Artist property. For example, 'color' or 'linestyle'. Aliases are allowed, such as 'c' for 'color' and 'lw' for 'linewidth'.

values : iterable

Finite-length iterable of the property values. These values are validated and will raise a ValueError if invalid.

Returns

Cycler

A new ~cycler.Cycler for the given properties.

Create a Cycler object much like cycler.cycler , but includes input validation.

Examples

Creating a cycler for a single property:

>>> c = cycler(color=['red', 'green', 'blue'])

Creating a cycler for simultaneously cycling over multiple properties (e.g. red circle, green plus, blue cross):

>>> c = cycler(color=['red', 'green', 'blue'],
...  marker=['o', '+', 'x'])
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

matplotlib.axes._base._AxesBase.set_prop_cycle matplotlib.rcsetup.cycler

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /matplotlib/rcsetup.py#618
type: <class 'function'>
Commit: