matplotlib.gridspec.GridSpecFromSubplotSpec#
- classmatplotlib.gridspec.GridSpecFromSubplotSpec(nrows,ncols,subplot_spec,wspace=None,hspace=None,height_ratios=None,width_ratios=None)[source]#
Bases:
GridSpecBaseGridSpec whose subplot layout parameters are inherited from thelocation specified by a given SubplotSpec.
- Parameters:
- nrows, ncolsint
Number of rows and number of columns of the grid.
- subplot_specSubplotSpec
Spec from which the layout parameters are inherited.
- wspace, hspacefloat, optional
See
GridSpecfor more details. If not specified default values(from the figure or rcParams) are used.- height_ratiosarray-like of lengthnrows, optional
See
GridSpecBasefor details.- width_ratiosarray-like of lengthncols, optional
See
GridSpecBasefor details.
- get_topmost_subplotspec()[source]#
Return the topmost
SubplotSpecinstance associated with the subplot.
Examples usingmatplotlib.gridspec.GridSpecFromSubplotSpec#
On this page