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

Skip to content

Commit 613c9c9

Browse files
authored
Merge pull request #28825 from timhoffm/doc-fix
DOC: Fix non-working code object references
2 parents 65878f3 + adaa62f commit 613c9c9

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

doc/api/axes_api.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,17 @@ The Axes class
2828

2929
Axes
3030

31+
Attributes
32+
----------
33+
34+
.. autosummary::
35+
:toctree: _as_gen
36+
:template: autosummary.rst
37+
:nosignatures:
38+
39+
Axes.viewLim
40+
Axes.dataLim
41+
3142
Plotting
3243
========
3344

doc/missing-references.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -341,10 +341,6 @@
341341
"Artist.stale_callback": [
342342
"doc/users/explain/figure/interactive_guide.rst:323"
343343
],
344-
"Axes.dataLim": [
345-
"doc/api/axes_api.rst:293:<autosummary>:1",
346-
"lib/matplotlib/axes/_base.py:docstring of matplotlib.axes._base._AxesBase.update_datalim:2"
347-
],
348344
"AxesBase": [
349345
"doc/api/axes_api.rst:448:<autosummary>:1",
350346
"lib/matplotlib/axes/_base.py:docstring of matplotlib.axes._base._AxesBase.add_child_axes:2"

lib/matplotlib/axes/_axes.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,6 @@ class Axes(_AxesBase):
8686
methods instead; e.g. from `.pyplot` or `.Figure`:
8787
`~.pyplot.subplots`, `~.pyplot.subplot_mosaic` or `.Figure.add_axes`.
8888
89-
Attributes
90-
----------
91-
dataLim : `.Bbox`
92-
The bounding box enclosing all data displayed in the Axes.
93-
viewLim : `.Bbox`
94-
The view limits in data coordinates.
95-
9689
"""
9790
### Labelling, legend and texts
9891

lib/matplotlib/axes/_base.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,9 @@ class _AxesBase(martist.Artist):
551551

552552
_subclass_uses_cla = False
553553

554+
dataLim: mtransforms.Bbox
555+
"""The bounding `.Bbox` enclosing all data displayed in the Axes."""
556+
554557
@property
555558
def _axis_map(self):
556559
"""A mapping of axis names, e.g. 'x', to `Axis` instances."""
@@ -849,6 +852,7 @@ def _unstale_viewLim(self):
849852

850853
@property
851854
def viewLim(self):
855+
"""The view limits as `.Bbox` in data coordinates."""
852856
self._unstale_viewLim()
853857
return self._viewLim
854858

@@ -2265,7 +2269,7 @@ def add_artist(self, a):
22652269

22662270
def add_child_axes(self, ax):
22672271
"""
2268-
Add an `.AxesBase` to the Axes' children; return the child Axes.
2272+
Add an `.Axes` to the Axes' children; return the child Axes.
22692273
22702274
This is the lowlevel version. See `.axes.Axes.inset_axes`.
22712275
"""

0 commit comments

Comments
 (0)