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

Skip to content

Commit 68e9dc5

Browse files
authored
Merge pull request #16324 from meeseeksmachine/auto-backport-of-pr-16323-on-v3.2.x
Backport PR #16323 on branch v3.2.x (Add sphinx doc for Axis.axis_name.)
2 parents b2e1e4f + 843fcfc commit 68e9dc5

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/matplotlib/axis.py

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

19151915
class XAxis(Axis):
19161916
__name__ = 'xaxis'
1917-
axis_name = 'x'
1917+
axis_name = 'x' #: Read-only name identifying the axis.
19181918

19191919
def contains(self, mouseevent):
19201920
"""Test whether the mouse event occurred in the x axis.
@@ -2199,7 +2199,7 @@ def get_tick_space(self):
21992199

22002200
class YAxis(Axis):
22012201
__name__ = 'yaxis'
2202-
axis_name = 'y'
2202+
axis_name = 'y' #: Read-only name identifying the axis.
22032203

22042204
def contains(self, mouseevent):
22052205
"""Test whether the mouse event occurred in the y axis.

lib/matplotlib/projections/polar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ class ThetaAxis(maxis.XAxis):
352352
for an angular axis.
353353
"""
354354
__name__ = 'thetaaxis'
355-
axis_name = 'theta'
355+
axis_name = 'theta' #: Read-only name identifying the axis.
356356

357357
def _get_tick(self, major):
358358
if major:
@@ -665,7 +665,7 @@ class RadialAxis(maxis.YAxis):
665665
for a radial axis.
666666
"""
667667
__name__ = 'radialaxis'
668-
axis_name = 'radius'
668+
axis_name = 'radius' #: Read-only name identifying the axis.
669669

670670
def __init__(self, *args, **kwargs):
671671
super().__init__(*args, **kwargs)

0 commit comments

Comments
 (0)