matplotlib 3.5.1

Parameters
__init__(self, axes, prop_name, add_name, valid_types=None, invalid_types=None)

Parameters

axes : .axes.Axes

The Axes from which this sublist will pull the children Artists.

prop_name : str

The property name used to access this sublist from the Axes; used to generate deprecation warnings.

add_name : str

The method name used to add Artists of this sublist's type to the Axes; used to generate deprecation warnings.

valid_types : list of type, optional

A list of types that determine which children will be returned by this sublist. If specified, then the Artists in the sublist must be instances of any of these types. If unspecified, then any type of Artist is valid (unless limited by invalid_types.)

invalid_types : tuple, optional

A list of types that determine which children will not be returned by this sublist. If specified, then Artists in the sublist will never be an instance of these types. Otherwise, no types will be excluded.

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#1321
type: <class 'function'>
Commit: