You are reading an old version of the documentation (v3.0.3). For the latest version see https://matplotlib.org/stable/api/_as_gen/matplotlib.artist.Artist.set_figure.html
Version 3.0.3
matplotlib
Fork me on GitHub

matplotlib.artist.Artist.set_figure

Artist.set_figure(fig)[source]

Set the Figure instance the artist belongs to.

Parameters:
fig : Figure