Skip to content

Commit 98ba2a6

Browse files
committed
DOC: Cross-link Axes attributes
Follow up to #28825.
1 parent 78198fb commit 98ba2a6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2251,8 +2251,8 @@ def add_artist(self, a):
22512251
22522252
Use `add_artist` only for artists for which there is no dedicated
22532253
"add" method; and if necessary, use a method such as `update_datalim`
2254-
to manually update the dataLim if the artist is to be included in
2255-
autoscaling.
2254+
to manually update the `~.Axes.dataLim` if the artist is to be included
2255+
in autoscaling.
22562256
22572257
If no ``transform`` has been specified when creating the artist (e.g.
22582258
``artist.get_transform() == None``) then the transform is set to
@@ -2365,7 +2365,7 @@ def _add_text(self, txt):
23652365

23662366
def _update_line_limits(self, line):
23672367
"""
2368-
Figures out the data limit of the given line, updating self.dataLim.
2368+
Figures out the data limit of the given line, updating `.Axes.dataLim`.
23692369
"""
23702370
path = line.get_path()
23712371
if path.vertices.size == 0:

lib/matplotlib/image.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -919,10 +919,10 @@ def set_extent(self, extent, **kwargs):
919919
920920
Notes
921921
-----
922-
This updates ``ax.dataLim``, and, if autoscaling, sets ``ax.viewLim``
923-
to tightly fit the image, regardless of ``dataLim``. Autoscaling
922+
This updates `.Axes.dataLim`, and, if autoscaling, sets `.Axes.viewLim`
923+
to tightly fit the image, regardless of `~.Axes.dataLim`. Autoscaling
924924
state is not changed, so following this with ``ax.autoscale_view()``
925-
will redo the autoscaling in accord with ``dataLim``.
925+
will redo the autoscaling in accord with `~.Axes.dataLim`.
926926
"""
927927
(xmin, xmax), (ymin, ymax) = self.axes._process_unit_info(
928928
[("x", [extent[0], extent[1]]),

0 commit comments

Comments
 (0)
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