8000 Add xaxis and yaxis attributes to Axes docs · matplotlib/matplotlib@a686716 · GitHub
[go: up one dir, main page]

Skip to content

Commit a686716

Browse files
committed
Add xaxis and yaxis attributes to Axes docs
1 parent 773096e commit a686716

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

doc/api/axes_api.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,8 @@ Axis / limits
274274
:template: autosummary.rst
275275
:nosignatures:
276276

277+
Axes.xaxis
278+
Axes.yaxis
277279
Axes.get_xaxis
278280
Axes.get_yaxis
279281

lib/matplotlib/axes/_base.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,12 @@ class _AxesBase(martist.Artist):
566566
dataLim: mtransforms.Bbox
567567
"""The bounding `.Bbox` enclosing all data displayed in the Axes."""
568568

569+
xaxis: maxis.XAxis
570+
"""The x-axis."""
571+
572+
yaxis: maxis.YAxis
573+
"""The y-axis."""
574+
569575
@property
570576
def _axis_map(self):
571577
"""A mapping of axis names, e.g. 'x', to `Axis` instances."""

0 commit comments

Comments
 (0)
0