matplotlib.figure.Figure.add_subfigure

Figure.add_subfigure(subplotspec, **kwargs)[source]

Add a SubFigure to the figure as part of a subplot arrangement.

Parameters:
subplotspecgridspec.SubplotSpec

Defines the region in a parent gridspec where the subfigure will be placed.

Returns:
SubFigure
Other Parameters:
**kwargs

Are passed to the SubFigure object.

Examples using matplotlib.figure.Figure.add_subfigure

Figure subfigures

Figure subfigures

© 2012–2023 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/stable/api/_as_gen/matplotlib.figure.Figure.add_subfigure.html