| [ Web Proxy ] |
| Viewing: https://matplotlib.org/devdocs/api/_as_gen/matplotlib.gridspec.GridSpecBase.html | [Back] [Original] |
Section Navigation
matplotlibmatplotlib.animationmatplotlib.artistmatplotlib.axesmatplotlib.axismatplotlib.backend_basesmatplotlib.backend_managersmatplotlib.backend_toolsmatplotlib.backendsmatplotlib.backends.backend_mixedmatplotlib.backends.backend_templatematplotlib.backends.backend_aggmatplotlib.backends.backend_cairomatplotlib.backends.backend_gtk3agg, matplotlib.backends.backend_gtk3cairomatplotlib.backends.backend_gtk4agg, matplotlib.backends.backend_gtk4cairomatplotlib.backends.backend_nbaggmatplotlib.backends.backend_pdfmatplotlib.backends.backend_pgfmatplotlib.backends.backend_psmatplotlib.backends.registrymatplotlib.backends.backend_qtagg, matplotlib.backends.backend_qtcairomatplotlib.backends.backend_svgmatplotlib.backends.backend_tkagg, matplotlib.backends.backend_tkcairomatplotlib.backends.backend_webagg_corematplotlib.backends.backend_webaggmatplotlib.backends.backend_wxagg, matplotlib.backends.backend_wxcairomatplotlib.beziermatplotlib.categorymatplotlib.cbookmatplotlib.cmmatplotlib.collectionsmatplotlib.colorbarmatplotlib.colorizermatplotlib.colorsmatplotlib.containermatplotlib.contourmatplotlib.datesmatplotlib.dvireadmatplotlib.figurematplotlib.font_managermatplotlib.ft2fontmatplotlib.gridspec
matplotlib.hatchmatplotlib.imagematplotlib.insetmatplotlib.layout_enginematplotlib.legendmatplotlib.legend_handlermatplotlib.lines
matplotlib.markers
matplotlib.mathtextmatplotlib.mlabmatplotlib.offsetboxmatplotlib.patchesmatplotlib.pathmatplotlib.patheffectsmatplotlib.pyplotmatplotlib.projections
matplotlib.quiver
matplotlib.rcsetupmatplotlib.sankeymatplotlib.scalematplotlib.sphinxext.mathmplmatplotlib.sphinxext.plot_directivematplotlib.sphinxext.figmpl_directivematplotlib.sphinxext.rolesmatplotlib.spinesmatplotlib.stylematplotlib.tablematplotlib.testingmatplotlib.textmatplotlib.texmanagermatplotlib.tickermatplotlib.transformsmatplotlib.trimatplotlib.typingmatplotlib.unitsmatplotlib.widgetsmatplotlib._afmmatplotlib._apimatplotlib._docstringmatplotlib._enumsmatplotlib._type1fontmatplotlib._tight_bboxmatplotlib._tight_layoutmpl_toolkits.mplot3dmpl_toolkits.axes_grid1mpl_toolkits.axisartistpylabmatplotlib.gridspecBases: object
A base class of GridSpec that specifies the geometry of the grid that a subplot will be placed.
The number of rows and columns of the grid.
Defines the relative widths of the columns. Each column gets a
relative width of width_ratios[i] / sum(width_ratios).
If not given, all columns will have the same width.
Defines the relative heights of the rows. Each row gets a
relative height of height_ratios[i] / sum(height_ratios).
If not given, all rows will have the same height.
Return the positions of the grid cells in figure coordinates.
FigureThe figure the grid should be applied to. The subplot parameters (margins and spacing between subplots) are taken from fig.
The bottom, top, left, right positions of the grid cells in figure coordinates.
Return the height ratios.
This is None if no height ratios have been set explicitly.
Return the width ratios.
This is None if no width ratios have been set explicitly.
The number of columns in the grid.
Create and return a SubplotSpec instance.
The position of the subplot in the grid as
(row_index, column_index).
The number of rows and columns the subplot should span in the grid.
The number of rows in the grid.
Set the relative heights of the rows.
height_ratios must be of length nrows. Each row gets a relative
height of height_ratios[i] / sum(height_ratios).
Notes
If Axes have already been created from this GridSpec, this method only
updates the ratios stored by the GridSpec. Existing Axes are not
repositioned automatically. To apply the new ratios to existing
Axes, use a layout engine (for example, Figure(layout="constrained"))
or re-evaluate each Axes' SubplotSpec with
ax.set_subplotspec(ax.get_subplotspec()).
Set the relative widths of the columns.
width_ratios must be of length ncols. Each column gets a relative
width of width_ratios[i] / sum(width_ratios).
Notes
If Axes have already been created from this GridSpec, this method only
updates the ratios stored by the GridSpec. Existing Axes are not
repositioned automatically. To apply the new ratios to existing
Axes, use a layout engine (for example, Figure(layout="constrained"))
or re-evaluate each Axes' SubplotSpec with
ax.set_subplotspec(ax.get_subplotspec()).
Add all subplots specified by this GridSpec to its parent figure.
See Figure.subplots for detailed documentation.
matplotlib.gridspec.GridSpecBase#GridSpecBaseGridSpecBase.get_geometry()GridSpecBase.get_grid_positions()GridSpecBase.get_height_ratios()GridSpecBase.get_subplot_params()GridSpecBase.get_width_ratios()GridSpecBase.ncolsGridSpecBase.new_subplotspec()GridSpecBase.nrowsGridSpecBase.set_height_ratios()GridSpecBase.set_width_ratios()GridSpecBase.subplots()matplotlib.gridspec.GridSpecBase
Copyright 20022012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the Matplotlib development team; 20122026 The Matplotlib development team.
Created using Sphinx 9.1.0.
Built from v3.11.2-738-ge3fc0dad9.
Built with the PyData Sphinx Theme 0.18.0.
| Web Proxy Viewer | New URL | Original Page |