Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions lib/matplotlib/axes/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1423,8 +1423,12 @@ def has_data(self):
len(self.patches)) > 0

def add_artist(self, a):
"""
Add any :class:`~matplotlib.artist.Artist` to the axes.
"""Add any :class:`~matplotlib.artist.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` or `update_datalim_numerix` to manually update the
dataLim if the artist is to be included in autoscaling.

Returns the artist.
"""
Expand Down