gridspec matplotlib.gridspec 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.
class matplotlib.gridspec.GridSpec(nrows, ncols, left=None, bottom=None, right=Non