diff --git a/doc/api/axes_api.rst b/doc/api/axes_api.rst index 6afdad4e768e..d8740823318c 100644 --- a/doc/api/axes_api.rst +++ b/doc/api/axes_api.rst @@ -274,6 +274,8 @@ Axis / limits :template: autosummary.rst :nosignatures: + Axes.xaxis + Axes.yaxis Axes.get_xaxis Axes.get_yaxis diff --git a/lib/matplotlib/axes/_base.py b/lib/matplotlib/axes/_base.py index 4c5b18e9e843..ca317db84207 100644 --- a/lib/matplotlib/axes/_base.py +++ b/lib/matplotlib/axes/_base.py @@ -566,6 +566,12 @@ class _AxesBase(martist.Artist): dataLim: mtransforms.Bbox """The bounding `.Bbox` enclosing all data displayed in the Axes.""" + xaxis: maxis.XAxis + """The x-axis.""" + + yaxis: maxis.YAxis + """The y-axis.""" + @property def _axis_map(self): """A mapping of axis names, e.g. 'x', to `Axis` instances."""