This is the class that is used calculates the axes position. It divides the given rectangular area into several sub-rectangles. You initialize the divider by setting the horizontal and vertical lists of sizes (mpl_toolkits.axes_grid.axes_size) that the division will be based on. You then use the new_locator method to create a callable object that can be used as the axes_locator of the axes.
Parameters: |
|
---|
return the anchor
return aspect
return horizontal sizes
return the position of the rectangle.
return vertical sizes
Parameters: |
|
---|
returns a new locator (mpl_toolkits.axes_grid.axes_divider.AxesLocator) for specified cell.
Parameters: |
|
---|
Parameters: | anchor – anchor position
|
---|
Parameters: | anchor – True or False |
---|
set the position of the rectangle.
Parameters: | pos – position (tuple of 4 floats) of the rectangle that will be divided. |
---|
A simple callable object, initialized with AxesDivider class, returns the position and size of the given cell.
Parameters: |
|
---|
The Divider class whose rectangle area is specified as a subplot geometry.
fig is a matplotlib.figure.Figure instance.
args is the tuple (numRows, numCols, plotNum), where the array of subplots in the figure has dimensions numRows, numCols, and where plotNum is the number of the subplot being created. plotNum starts at 1 in the upper left corner and increases to the right.
If numRows <= numCols <= plotNum < 10, args can be the decimal integer numRows * 100 + numCols * 10 + plotNum.
change subplot geometry, e.g., from 1,1,1 to 2,2,3
get the subplot geometry, e.g., 2,2,3
return the bounds of the subplot box
get the SubplotSpec instance
set the SubplotSpec instance
update the subplot position from fig.subplotpars
Divider based on the pre-existing axes.
Parameters: | axes – axes |
---|
create an axes at the given position with the same height (or width) of the main axes.
- position
- [“left”|”right”|”bottom”|”top”]
size and pad should be axes_grid.axes_size compatible.
Add a new axes on the right (or left) side of the main axes.
Parameters: |
|
---|
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.
Parameters: |
|
---|
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.