You are reading an old version of the documentation (v3.3.0). For the latest version see https://matplotlib.org/stable/api/gridspec_api.html
matplotlib.gridspec¶
gridspec contains classes that help to layout multiple
Axes in a grid-like pattern within a figure.
The GridSpec specifies the overall grid structure. Individual cells within
the grid are referenced by SubplotSpecs.
See the tutorial Customizing Figure Layouts Using GridSpec and Other Functions for a comprehensive usage guide.
