diff --git a/lib/matplotlib/axes/_base.py b/lib/matplotlib/axes/_base.py index a1f25f9f9920..bc5d9c884bfe 100644 --- a/lib/matplotlib/axes/_base.py +++ b/lib/matplotlib/axes/_base.py @@ -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. """ pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy