Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5d660a4

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

File tree

Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed

‎lib/matplotlib/axis.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axis.py
+2-2Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/projections/polar.py
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.