@@ -566,6 +566,36 @@ class _AxesBase(martist.Artist):
566
566
dataLim : mtransforms .Bbox
567
567
"""The bounding `.Bbox` enclosing all data displayed in the Axes."""
568
568
569
+ xaxis : maxis .XAxis
570
+ """
571
+ The `.XAxis` instance.
572
+
573
+ Common axis-related configuration can be achieved through high-level wrapper
574
+ methods on Axes; e.g. `ax.set_xticks <.Axes.set_xticks>` is a shortcut for
575
+ `ax.xaxis.set_ticks <.Axis.set_ticks>`. The *xaxis* attribute gives direct
576
+ direct access to the underlying `~.axis.Axis` if you need more control.
577
+
578
+ See also
579
+
580
+ - :ref:`Axis wrapper methods on Axes <axes-api-axis>`
581
+ - :doc:`Axis API </api/axis_api>`
582
+ """
583
+
584
+ yaxis : maxis .YAxis
585
+ """
586
+ The `.YAxis` instance.
587
+
588
+ Common axis-related configuration can be achieved through high-level wrapper
589
+ methods on Axes; e.g. `ax.set_yticks <.Axes.set_yticks>` is a shortcut for
590
+ `ax.yaxis.set_ticks <.Axis.set_ticks>`. The *yaxis* attribute gives direct
591
+ access to the underlying `~.axis.Axis` if you need more control.
592
+
593
+ See also
594
+
595
+ - :ref:`Axis wrapper methods on Axes <axes-api-axis>`
596
+ - :doc:`Axis API </api/axis_api>`
597
+ """
598
+
569
599
@property
570
600
def _axis_map (self ):
571
601
"""A mapping of axis names, e.g. 'x', to `Axis` instances."""
@@ -2218,7 +2248,7 @@ def get_xaxis(self):
2218
2248
.. admonition:: Discouraged
2219
2249
2220
2250
The use of this function is discouraged. You should instead
2221
- directly access the attribute ``ax. xaxis` `.
2251
+ directly access the attribute `~.Axes. xaxis`.
2222
2252
"""
2223
2253
return self .xaxis
2224
2254
@@ -2229,7 +2259,7 @@ def get_yaxis(self):
2229
2259
.. admonition:: Discouraged
2230
2260
2231
2261
The use of this function is discouraged. You should instead
2232
- directly access the attribute ``ax. yaxis` `.
2262
+ directly access the attribute `~.Axes. yaxis`.
2233
2263
"""
2234
2264
return self .yaxis
2235
2265
0 commit comments