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: | fig :
rect : (float, float, float, float) or int
direction : {"row", "column"}, default: "row" axes_pad : float or (float, float), default: 0.02
add_all : bool, default: True share_all : bool, default: False share_x : bool, default: True share_y : bool, default: True label_mode : {"L", "1", "all"}, default: "L"
axes_class : a type that is a subclass of |
---|
get_axes_pad
()[source]¶Return the axes padding.
Returns: | hpad, vpad
|
---|
set_axes_pad
(axes_pad)[source]¶Set the padding between the axes.
Parameters: | axes_pad : (float, float)
|
---|
set_label_mode
(mode)[source]¶Define which axes have tick labels.
Parameters: | mode : {"L", "1", "all"}
|
---|