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 SubplotSpec
s.
See the tutorial Customizing Figure Layouts Using GridSpec and Other Functions for a comprehensive usage guide.
Classes
GridSpec (nrows, ncols[, figure, left, ...]) | A grid layout to place subplots within a figure. |
SubplotSpec (gridspec, num1[, num2]) | Specifies the location of a subplot in a GridSpec . |
GridSpecBase (nrows, ncols[, height_ratios, ...]) | A base class of GridSpec that specifies the geometry of the grid that a subplot will be placed. |
GridSpecFromSubplotSpec (nrows, ncols, ...[, ...]) | GridSpec whose subplot layout parameters are inherited from the location specified by a given SubplotSpec. |
© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.2.2/api/gridspec_api.html