matplotlib 3.5.1

Each box is defined by left[ncols], right[ncols], bottom[nrows] and top[nrows], and by two editable margins for each side. The main margin gets its value set by the size of ticklabels, titles, etc on each axes that is in the figure. The outer margin is the padding around the axes, and space for any colorbars.

The "inner" widths and heights of these boxes are then constrained to be the same (relative the values of :None:None:`width_ratios[ncols]` and :None:None:`height_ratios[nrows]`).

The layoutgrid is then constrained to be contained within a parent layoutgrid, its column(s) and row(s) specified when it is created.

A layoutgrid is a nrows by ncols set of boxes, meant to be used by ._constrained_layout , each box is analogous to a subplotspec element of a gridspec.

A layoutgrid is a nrows by ncols set of boxes, meant to be used by ._constrained_layout , each box is analogous to a subplotspec element of a gridspec.

Each box is defined by left[ncols], right[ncols], bottom[nrows] and top[nrows], and by two editable margins for each side. The main margin gets its value set by the size of ticklabels, titles, etc on each axes that is in the figure. The outer margin is the padding around the axes, and space for any colorbars.

The "inner" widths and heights of these boxes are then constrained to be the same (relative the values of :None:None:`width_ratios[ncols]` and :None:None:`height_ratios[nrows]`).

The layoutgrid is then constrained to be contained within a parent layoutgrid, its column(s) and row(s) specified when it is created.

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/_layoutgrid.py#0
type: <class 'module'>
Commit: