We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ecafbb commit 17cd363Copy full SHA for 17cd363
lib/matplotlib/axes/_base.py
@@ -1423,8 +1423,12 @@ def has_data(self):
1423
len(self.patches)) > 0
1424
1425
def add_artist(self, a):
1426
- """
1427
- Add any :class:`~matplotlib.artist.Artist` to the axes.
+ """Add any :class:`~matplotlib.artist.Artist` to the axes.
+
1428
+ Use `add_artist` only for artists for which there is no dedicated
1429
+ "add" method; and if necessary, use a method such as
1430
+ `update_datalim` or `update_datalim_numerix` to manually update the
1431
+ dataLim if the artist is to be included in autoscaling.
1432
1433
Returns the artist.
1434
"""
0 commit comments