gridspec is a module which specifies the location of the subplot in the figure.
- GridSpec
- specifies the geometry of the grid that a subplot will be placed. The number of rows and number of columns of the grid need to be set. Optionally, the subplot layout parameters (e.g., left, right, etc.) can be tuned.
- SubplotSpec
- specifies the location of the subplot in the given GridSpec.
Bases: matplotlib.gridspec.GridSpecBase
A class that specifies the geometry of the grid that a subplot will be placed. The location of grid is determined by similar way as the SubplotParams.
The number of rows and number of columns of the grid need to be set. Optionally, the subplot layout parameters (e.g., left, right, etc.) can be tuned.
Bases: object
A base class of GridSpec that specifies the geometry of the grid that a subplot will be placed.
The number of rows and number of columns of the grid need to be set. Optionally, the ratio of heights and widths of ros and columns can be specified.
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 inheirted. The wspace and hspace of the layout can be optionally specified or the default values (from the figure or rcParams) will be used.
Bases: object
specifies the location of the subplot in the given GridSpec.
The subplot will occupy the num1-th cell of the given gridspec. If num2 is provided, the subplot will span between num1-th cell and num2-th cell.
The index stars from 0.