matplotlib.artist.Artist.get_figure#

Artist.get_figure(root=False)[source]#

Return theFigure orSubFigure instance 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.

On this page