class mpl_toolkits.axes_grid1.axes_grid.Grid(fig, rect, nrows_ncols, ngrids=None, direction='row', axes_pad=0.02, add_all=True, share_all=False, share_x=True, share_y=True, label_mode='L', axes_class=None)
[source]
Bases: object
A class that creates a grid of Axes. In matplotlib, the axes location (and size) is specified in the normalized figure coordinates. This may not be ideal for images that needs to be displayed with a given aspect ratio. For example, displaying images of a same size with some fixed padding between them cannot be easily done in matplotlib. AxesGrid is used in such case.
Parameters: |
|
---|
get_aspect(self)
[source]
Return the aspect of the SubplotDivider.
get_axes_locator(self)
[source]
get_axes_pad(self)
[source]
Return the axes padding.
Returns: |
|
---|
get_divider(self)
[source]
get_geometry(self)
[source]
Return the number of rows and columns of the grid as (nrows, ncols).
get_vsize_hsize(self)
[source]
set_aspect(self, aspect)
[source]
Set the aspect of the SubplotDivider.
set_axes_locator(self, locator)
[source]
set_axes_pad(self, axes_pad)
[source]
Set the padding between the axes.
Parameters: |
|
---|
set_label_mode(self, mode)
[source]
Define which axes have tick labels.
Parameters: |
|
---|
© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.1.1/api/_as_gen/mpl_toolkits.axes_grid1.axes_grid.Grid.html