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.

Classes