matplotlib 3.5.1

NotesParameters
__init__(self, pad=None, sep=None, width=None, height=None, align='baseline', mode='fixed', children=None)

Notes

pad and sep are in points and will be scaled with the renderer dpi, while width and height are in pixels.

Parameters

pad : float, optional

The boundary padding in points.

sep : float, optional

The spacing between items in points.

width, height : float, optional

Width and height of the container box in pixels, calculated if None.

align : {'top', 'bottom', 'left', 'right', 'center', 'baseline'}, default: 'baseline'

Alignment of boxes.

mode : {'fixed', 'expand', 'equal'}, default: 'fixed'

The packing mode.

  • 'fixed' packs the given .Artist \s tight with sep spacing.

  • 'expand' uses the maximal available space to distribute the artists with equal spacing in between.

  • 'equal': Each artist an equal fraction of the available space and is left-aligned (or top-aligned) therein.

children : list of `.Artist`

The artists to pack.

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