Add a set of subfigures to this figure or subfigure.
A subfigure has the same artist methods as a figure, and is logically the same as a figure, but cannot print itself. See Figure subfigures.
Note
The subfigure concept is new in v3.4, and the API is still provisional.
Number of rows/columns of the subfigure grid.
If True, extra dimensions are squeezed out from the returned array of subfigures.
The amount of width/height reserved for space between subfigures, expressed as a fraction of the average subfigure width/height. If not given, the values will be inferred from rcParams if using constrained layout (see ConstrainedLayoutEngine), or zero if not using a layout engine.
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.
matplotlib.figure.Figure.subfigures
Complex and semantic figure composition (subplot_mosaic)
© 2012–2023 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/stable/api/_as_gen/matplotlib.figure.Figure.subfigures.html