matplotlib 3.5.1

ParametersBackRef
note

Likely, you'll never instantiate a :None:None:`SubplotSpec` yourself. Instead you will typically obtain one from a :None:None:`GridSpec` using item-access.

Parameters

gridspec : `~matplotlib.gridspec.GridSpec`

The GridSpec, which the subplot is referencing.

num1, num2 : int

The subplot will occupy the num1-th cell of the given gridspec. If num2 is provided, the subplot will span between num1-th cell and num2-th cell inclusive.

The index starts from 0.

The location of a subplot in a GridSpec .

Examples

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

matplotlib.axes._subplots.SubplotBase.get_subplotspec matplotlib.figure.FigureBase.align_ylabels matplotlib.gridspec.SubplotSpec.subgridspec matplotlib.gridspec.GridSpecBase.new_subplotspec matplotlib.figure.FigureBase.add_subplot matplotlib.gridspec.SubplotSpec.get_topmost_subplotspec matplotlib.axes._subplots.SubplotBase.set_subplotspec matplotlib.figure.FigureBase.align_xlabels matplotlib.gridspec matplotlib.gridspec.GridSpecBase.__getitem__ matplotlib.pyplot.subplot matplotlib.gridspec.GridSpecFromSubplotSpec.get_topmost_subplotspec

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/gridspec.py#539
type: <class 'type'>
Commit: