Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0161751

Browse files
committed
DOC: Fix Sphinx warning and address reviewer comments
- Fix backticks on autolim=True in add_collection docstring (single backtick was interpreted as cross-reference by Sphinx) - 'explicit calls' -> 'explicit call' per reviewer suggestion - Remove out-of-place TODO comments from artist.py remove()
1 parent f90c147 commit 0161751

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

lib/matplotlib/artist.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,6 @@ def remove(self):
268268

269269
else:
270270
raise NotImplementedError('cannot remove artist')
271-
# TODO: move the limits calculation into the artist itself, including
272-
# the property of whether or not the artist should affect the limits.
273-
# Then there will be no distinction between axes.add_line,
274-
# axes.add_patch, etc.
275-
# TODO: add legend support
276271

277272
def have_units(self):
278273
"""Return whether units are set on any axis."""

lib/matplotlib/axes/_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2391,15 +2391,15 @@ def add_collection(self, collection, autolim=True):
23912391
23922392
.. versionchanged:: 3.11
23932393
2394-
Since 3.11 `autolim=True` matches the standard behavior
2394+
Since 3.11 ``autolim=True`` matches the standard behavior
23952395
of other ``add_[artist]`` methods: Axes data and view limits
23962396
are both updated in the method, and the collection will
23972397
be considered in future data limit updates through
23982398
`.relim`.
23992399
24002400
Prior to matplotlib 3.11 this was only a one-time update
24012401
of the data limits. Updating view limits required an
2402-
explicit calls to `~.Axes.autoscale_view`, and collections
2402+
explicit call to `~.Axes.autoscale_view`, and collections
24032403
did not take part in `.relim`.
24042404
24052405
As an implementation detail, the value "_datalim_only" is

0 commit comments

Comments
 (0)