Skip to content

Commit 5d660a4

Browse files
authored
Merge pull request #16323 from anntzer/axis_name
Add sphinx doc for Axis.axis_name.
2 parents 4412114 + 4ae3151 commit 5d660a4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/matplotlib/axis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1830,7 +1830,7 @@ def setter(self, vmin, vmax, ignore=False):
18301830

18311831
class XAxis(Axis):
18321832
__name__ = 'xaxis'
1833-
axis_name = 'x'
1833+
axis_name = 'x' #: Read-only name identifying the axis.
18341834

18351835
def __init__(self, *args, **kwargs):
18361836
super().__init__(*args, **kwargs)
@@ -2122,7 +2122,7 @@ def get_tick_space(self):
21222122

21232123
class YAxis(Axis):
21242124
__name__ = 'yaxis'
2125-
axis_name = 'y'
2125+
axis_name = 'y' #: Read-only name identifying the axis.
21262126

21272127
def __init__(self, *args, **kwargs):
21282128
super().__init__(*args, **kwargs)

lib/matplotlib/projections/polar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ class ThetaAxis(maxis.XAxis):
339339
for an angular axis.
340340
"""
341341
__name__ = 'thetaaxis'
342-
axis_name = 'theta'
342+
axis_name = 'theta' #: Read-only name identifying the axis.
343343

344344
def _get_tick(self, major):
345345
if major:
@@ -648,7 +648,7 @@ class RadialAxis(maxis.YAxis):
648648
for a radial axis.
649649
"""
650650
__name__ = 'radialaxis'
651-
axis_name = 'radius'
651+
axis_name = 'radius' #: Read-only name identifying the axis.
652652

653653
def __init__(self, *args, **kwargs):
654654
super().__init__(*args, **kwargs)

0 commit comments

Comments
 (0)