mpl_toolkits.axes_grid1.axes_grid.ImageGrid
- class mpl_toolkits.axes_grid1.axes_grid.ImageGrid(fig, rect, nrows_ncols, n_axes=None, direction='row', axes_pad=0.02, *, share_all=False, , , , , , , ,
Bases: Grid
A grid of Axes for Image display.
This class is a specialization of Grid for displaying a
grid of images. In particular, it forces all axes in a column to share their x-axis
and all axes in a row to share their y-axis. It further provides helpers to add
colorbars to some or all axes.
FigureThe 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 given, only the first n_axes 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. Note that in any case, all axes in a column share their x-axis and all axes in a row share their y-axis.
Whether the axes aspect ratio follows the aspect ratio of the data limits.
Determines which axes will get tick labels:
"L": All axes on the left column get vertical tick labels; all axes on the bottom row get horizontal tick labels.
"1": Only the bottom left axes is labelled.
"all": all axes are labelled.
Whether to create a colorbar for "each" axes, a "single" colorbar
for the entire grid, colorbars only for axes on the "edge"
determined by cbar_location, or no colorbars. The colorbars are
stored in the cbar_axes attribute.
Padding between the image axes and the colorbar axes.
.Size.from_any), default: "5%"Colorbar size.
If True, each axes in the grid has a cax attribute that is bound to associated cbar_axes.
matplotlib.axes.Axes, default: mpl_axes.Axesmpl_toolkits.axes_grid1.axes_grid.ImageGrid