matplotlib 3.5.1

Parameters
__init__(self, widths, heights, angles, units='points', **kwargs)

Parameters

widths : array-like

The lengths of the first axes (e.g., major axis lengths).

heights : array-like

The lengths of second axes.

angles : array-like

The angles of the first axes, degrees CCW from the x-axis.

units : {'points', 'inches', 'dots', 'width', 'height', 'x', 'y', 'xy'}

The units in which majors and minors are given; 'width' and 'height' refer to the dimensions of the axes, while 'x' and 'y' refer to the offsets data units. 'xy' differs from all others in that the angle as plotted varies with the aspect ratio, and equals the specified angle only when the aspect ratio is unity. Hence it behaves the same as the ~.patches.Ellipse with axes.transData as its transform.

**kwargs :

Forwarded to Collection .

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/collections.py#1726
type: <class 'function'>
Commit: