matplotlib.gridspec.GridSpecFromSubplotSpec¶
-
class
matplotlib.gridspec.
GridSpecFromSubplotSpec
(nrows, ncols, subplot_spec, wspace=None, hspace=None, height_ratios=None, width_ratios=None)[source]¶ Bases:
matplotlib.gridspec.GridSpecBase
GridSpec whose subplot layout parameters are inherited from the location specified by a given SubplotSpec.
The number of rows and number of columns of the grid need to be set. An instance of SubplotSpec is also needed to be set from which the layout parameters will be inherited. The wspace and hspace of the layout can be optionally specified or the default values (from the figure or rcParams) will be used.
-
__init__
(nrows, ncols, subplot_spec, wspace=None, hspace=None, height_ratios=None, width_ratios=None)[source]¶ The number of rows and number of columns of the grid need to be set. An instance of SubplotSpec is also needed to be set from which the layout parameters will be inherited. The wspace and hspace of the layout can be optionally specified or the default values (from the figure or rcParams) will be used.
-
__module__
= 'matplotlib.gridspec'¶
-
get_topmost_subplotspec
()[source]¶ Return the topmost
SubplotSpec
instance associated with the subplot.
-