matplotlib 3.5.1

ParametersReturns
_plot_args(self, tup, kwargs, return_kwargs=False)

This processes a single set of ([x], y, [fmt]) parameters; i.e. for plot(x, y, x2, y2) it will be called twice. Once for (x, y) and once for (x2, y2).

x and y may be 2D and thus can still represent multiple datasets.

For multiple datasets, if the keyword argument label is a list, this will unpack the list and assign the individual labels to the datasets.

Parameters

tup : tuple

A tuple of the positional parameters. This can be one of

  • (y,)

  • (x, y)

  • (y, fmt)

  • (x, y, fmt)

kwargs : dict

The keyword arguments passed to plot() .

return_kwargs : bool

If true, return the effective keyword arguments after label unpacking as well.

Returns

result

If return_kwargs is false, a list of Artists representing the dataset(s). If return_kwargs is true, a list of (Artist, effective_kwargs) representing the dataset(s). See return_kwargs. The Artist is either .Line2D (if called from plot() ) or .Polygon otherwise.

Process the arguments of plot([x], y, [fmt], **kwargs) calls.

Examples

See :

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/axes/_base.py#406
type: <class 'function'>
Commit: