You are reading an old version of the documentation (v2.2.4). For the latest version see https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.add_artist.html
Version 2.2.4
matplotlib
Fork me on GitHub

Table of Contents

matplotlib.axes.Axes.add_artist

Axes.add_artist(a)

Add any Artist to the axes.

Use add_artist only for artists for which there is no dedicated "add" method; and if necessary, use a method such as update_datalim to manually update the dataLim if the artist is to be included in autoscaling.

Returns the artist.

Examples using matplotlib.axes.Axes.add_artist