matplotlib.figure.SubFigure.add_artist
- SubFigure.add_artist(artist, clip=False)[source]
-
Add an
Artistto the figure.Usually artists are added to
Axesobjects usingAxes.add_artist; this method can be used in the rare cases where one needs to add artists directly to the figure instead.- Parameters:
-
-
artist
Artist -
The artist to add to the figure. If the added artist has no transform previously set, its transform will be set to
figure.transSubfigure. - clipbool, default: False
-
Whether the added artist should be clipped by the figure patch.
-
artist
- Returns:
-
Artist-
The added artist.
© 2012–2026 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/stable/api/_as_gen/matplotlib.figure.SubFigure.add_artist.html