Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5c8dc98

Browse files
committed
DOC: Cross-link Axes attributes
Follow up to#28825.
1 parent78198fb commit5c8dc98

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
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+
inautoscaling.
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, updatingself.dataLim.
2368+
Figures out the data limit of the given line, updating`.Axes.dataLim`.
23692369
"""
23702370
path=line.get_path()
23712371
ifpath.vertices.size==0:

‎lib/matplotlib/image.py

Lines changed: 4 additions & 4 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
924-
state is not changed, sofollowing this with ``ax.autoscale_view()``
925-
will redo the autoscaling in accord with ``dataLim``.
922+
This updates `.Axes.dataLim`, and, if autoscaling, sets `.Axes.viewLim`
923+
to tightly fit the image, regardless of `~.Axes.dataLim`. Autoscaling
924+
state is not changed, soa subsequent call to `.Axes.autoscale_view`
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)

[8]ページ先頭

©2009-2025 Movatter.jp