mpl_toolkits.axes_grid1.axes_divider.SubplotDivider
-
class mpl_toolkits.axes_grid1.axes_divider.SubplotDivider(fig, *args, **kwargs)[source] -
The Divider class whose rectangle area is specified as a subplot geometry.
Parameters: -
fig : matplotlib.figure.Figure -
args : tuple (numRows, numCols, plotNum) -
The array of subplots in the figure has dimensions numRows, numCols, and 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_geometry(numrows, numcols, num)[source] -
change subplot geometry, e.g., from 1,1,1 to 2,2,3
-
get_geometry()[source] -
get the subplot geometry, e.g., 2,2,3
-
get_position()[source] -
return the bounds of the subplot box
-
get_subplotspec()[source] -
get the SubplotSpec instance
-
set_subplotspec(subplotspec)[source] -
set the SubplotSpec instance
-
update_params()[source] -
update the subplot position from fig.subplotpars
-
© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/2.2.3/api/_as_gen/mpl_toolkits.axes_grid1.axes_divider.SubplotDivider.html