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

matplotlib.artist.Artist.set_figure

Artist.set_figure(self, fig)[source]

Set the Figure instance the artist belongs to.

Parameters:
fig : Figure