Bases: object
Base class for subplots, which are Axes
instances with additional methods to facilitate generating and manipulating a set of Axes
within a figure.
matplotlib.figure.Figure
The array of subplots in the figure has dimensions (nrows,
ncols)
, and index is the index of the subplot being created. index starts at 1 in the upper left corner and increases to the right.
If nrows, ncols, and index are all single digit numbers, then args can be passed as a single 3-digit number (e.g. 234 for (2, 3, 4)).
Keyword arguments are passed to the Axes (sub)class constructor.
[Deprecated] Change subplot geometry, e.g., from (1, 1, 1) to (2, 2, 3).
Deprecated since version 3.4.
[Deprecated] Get the subplot geometry, e.g., (2, 2, 3).
Deprecated since version 3.4.
Return the SubplotSpec
instance associated with the subplot.
[Deprecated]
Deprecated since version 3.4:
[Deprecated]
Deprecated since version 3.4:
[Deprecated]
Deprecated since version 3.4:
[Deprecated]
Deprecated since version 3.4:
Only show "outer" labels and tick labels.
x-labels are only kept for subplots on the last row (or first row, if labels are on the top side); y-labels only for subplots on the first column (or last column, if labels are on the right side).
Set the SubplotSpec
. instance associated with the subplot.
[Deprecated] Update the subplot position from self.figure.subplotpars
.
Deprecated since version 3.4.
© 2012–2021 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.5.1/api/_as_gen/matplotlib.axes.SubplotBase.html