Skip to content

Commit

Permalink
DOC: Cross-link Axes attributes
Browse files Browse the repository at this point in the history
Follow up to matplotlib#28825.
  • Loading branch information
timhoffm committed Sep 25, 2024
1 parent 78198fb commit 460c516
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions lib/matplotlib/axes/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2251,8 +2251,8 @@ def add_artist(self, a):
Use `add_artist` only for artists for which there is no dedicated
"add" method; and if necessary, use a method such as `update_datalim`
to manually update the dataLim if the artist is to be included in
autoscaling.
to manually update the `~.Axes.dataLim` if the artist is to be included
in autoscaling.
If no ``transform`` has been specified when creating the artist (e.g.
``artist.get_transform() == None``) then the transform is set to
Expand Down Expand Up @@ -2365,7 +2365,7 @@ def _add_text(self, txt):

def _update_line_limits(self, line):
"""
Figures out the data limit of the given line, updating self.dataLim.
Figures out the data limit of the given line, updating `.Axes.dataLim`.
"""
path = line.get_path()
if path.vertices.size == 0:
Expand Down
8 changes: 4 additions & 4 deletions lib/matplotlib/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -919,10 +919,10 @@ def set_extent(self, extent, **kwargs):
Notes
-----
This updates ``ax.dataLim``, and, if autoscaling, sets ``ax.viewLim``
to tightly fit the image, regardless of ``dataLim``. Autoscaling
state is not changed, so following this with ``ax.autoscale_view()``
will redo the autoscaling in accord with ``dataLim``.
This updates `.Axes.dataLim`, and, if autoscaling, sets `.Axes.viewLim`
to tightly fit the image, regardless of `~.Axes.dataLim`. Autoscaling
state is not changed, so a subsequent call to `.Axes.autoscale_view``
will redo the autoscaling in accord with `~.Axes.dataLim`.
"""
(xmin, xmax), (ymin, ymax) = self.axes._process_unit_info(
[("x", [extent[0], extent[1]]),
Expand Down

0 comments on commit 460c516

Please sign in to comment.