matplotlib.artist.Artist.get_figure
- Artist.get_figure(root=False)[source]
-
Return the
FigureorSubFigureinstance the artist belongs to.- Parameters:
-
- rootbool, default=False
-
If False, return the (Sub)Figure this artist is on. If True, return the root Figure for a nested tree of SubFigures.
© 2012–2026 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/stable/api/_as_gen/matplotlib.artist.Artist.get_figure.html