This is the class that is used calculates the axes position. It divides the given renctangular area into several sub-rectangles. You intialize 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 to 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: |
|
---|
Parameters: |
|
---|
set the position of the rectangle.
Parameters: |
|
---|
A simple callable object, initiallized with AxesDivider class, returns the position and size of the given cell.
Parameters: |
|
---|
The Divider class whose rectangle area is specified as a subplot grometry.
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.
return the bounds of the subplot box
update the subplot position from fig.subplotpars
Divider based on the pre-existing axes.
Parameters: |
|
---|
Add a new axes on the right (or left) side of the main axes.
Parameters: |
|
---|
All extra keywords argument is passed to when creating a 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. if Not provided
Add a new axes on the top (or bottom) side of the main axes.
Parameters: |
|
---|
All extra keywords argument is passed to when creating a 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. if Not provided