Bases: mpl_toolkits.axes_grid1.axes_divider.Divider
Divider based on the pre-existing axes.
Axes
Create an axes at the given position with the same height (or width) of the main axes.
["left"|"right"|"bottom"|"top"]
size and pad should be axes_grid.axes_size compatible.
Return the anchor.
Return aspect.
Return the position of the rectangle.
Add a new axes on the right (or left) side of the main axes.
axes_size
or float or str
The axes width. float or str arguments are interpreted as axes_size.from_any(size, AxesX(<main_axes>))
.
axes_size
or float or str
Padding between the axes. float or str arguments are interpreted as axes_size.from_any(size, AxesX(<main_axes>))
. Defaults to rcParams["figure.subplot.wspace"]
(default: 0.2
) times the main axes width.
If False, the new axes is appended at the end of the list, i.e., it became the right-most axes. If True, it is inserted at the start of the list, and becomes the left-most axes.
All extra keywords arguments are passed to the created axes. If axes_class is given, the new axes will be created as an instance of the given class. Otherwise, the same class of the main axes will be used.
Add a new axes on the top (or bottom) side of the main axes.
axes_size
or float or str
The axes height. float or str arguments are interpreted as axes_size.from_any(size, AxesY(<main_axes>))
.
axes_size
or float or str
Padding between the axes. float or str arguments are interpreted as axes_size.from_any(size, AxesY(<main_axes>))
. Defaults to rcParams["figure.subplot.hspace"]
(default: 0.2
) times the main axes height.
If False, the new axes is appended at the end of the list, i.e., it became the right-most axes. If True, it is inserted at the start of the list, and becomes the left-most axes.
All extra keywords arguments are passed to the created axes. If axes_class is given, the new axes will be created as an instance of the given class. Otherwise, the same class of the main axes will be used.
mpl_toolkits.axes_grid1.axes_divider.AxesDivider
© 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_divider.AxesDivider.html