Bases: object
A grid of Axes.
In Matplotlib, the axes location (and size) is specified in normalized figure coordinates. This may not be ideal for images that needs to be displayed with a given aspect ratio; for example, it is difficult to display multiple images of a same size with some fixed padding between them. AxesGrid can be used in such case.
Figure
The parent figure.
The axes position, as a (left, bottom, width, height)
tuple or as a three-digit subplot position code (e.g., "121").
Number of rows and columns in the grid.
If not None, only the first ngrids axes in the grid are created.
Whether axes are created in row-major ("row by row") or column-major order ("column by column"). This also affects the order in which axes are accessed using indexing (grid[index]
).
Padding or (horizontal padding, vertical padding) between axes, in inches.
Whether all axes share their x- and y-axis. Overrides share_x and share_y.
Whether all axes of a column share their x-axis.
Whether all axes of a row share their y-axis.
Determines which axes will get tick labels:
matplotlib.axes.Axes
, default: None
Whether the axes aspect ratio follows the aspect ratio of the data limits.
Return the aspect of the SubplotDivider.
Return the axes padding.
Padding (horizontal pad, vertical pad) in inches.
Return the number of rows and columns of the grid as (nrows, ncols).
[Deprecated]
Deprecated since version 3.5:
Set the aspect of the SubplotDivider.
Set the padding between the axes.
The padding (horizontal pad, vertical pad) in inches.
Define which axes have tick labels.
The label mode:
© 2012–2021 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.5.1/api/_as_gen/mpl_toolkits.axes_grid1.axes_grid.Grid.html