### Navigation

- index
- modules |
- next |
- previous |
- home|
- examples|
- tutorials|
- pyplot|
- docs »
- The Matplotlib API »
- gridspec »

# matplotlib.gridspec.GridSpecBase

class `matplotlib.gridspec.``GridSpecBase`(nrows, ncols, height_ratios=None, width_ratios=None)

  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 rows and columns can be specified.