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

Appearance settings

Commit 2c30e96

Browse filesBrowse files
committed
DOC: Fix non-working code object references
These were not rendered as links in the current docs, because the associated code objects do not exist as targets in the docs. For some reason, sphinx did not complain about it. But it does in some recent PRs (extracted from matplotlib#28560) - I'm unclear why, but anyway the correct solution is to change the references: - `AxesBase` is not documented itself and in the given context, we don't have to make the specific distinction, so just link `Axes` - The datalim attribute is documented as part of the Axes class, but does not have a dedicated target to link to. So we simply use a literal instead of a link.
1 parent 56153b9 commit 2c30e96
Copy full SHA for 2c30e96

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎lib/matplotlib/axes/_base.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_base.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2265,7 +2265,7 @@ def add_artist(self, a):
22652265

22662266
def add_child_axes(self, ax):
22672267
"""
2268-
Add an `.AxesBase` to the Axes' children; return the child Axes.
2268+
Add an `.Axes` to the Axes' children; return the child Axes.
22692269
22702270
This is the lowlevel version. See `.axes.Axes.inset_axes`.
22712271
"""
@@ -2524,7 +2524,7 @@ def relim(self, visible_only=False):
25242524

25252525
def update_datalim(self, xys, updatex=True, updatey=True):
25262526
"""
2527-
Extend the `~.Axes.dataLim` Bbox to include the given points.
2527+
Extend the ``Axes.dataLim`` Bbox to include the given points.
25282528
25292529
If no data is set currently, the Bbox will ignore its limits and set
25302530
the bound to be the bounds of the xydata (*xys*). Otherwise, it will

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.