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 54d718e

Browse filesBrowse files
authored
Merge pull request #28913 from timhoffm/doc-fix-axis-set-label-ref
DOC: Fix Axis.set_label reference
2 parents 14dda09 + 22c02a8 commit 54d718e
Copy full SHA for 54d718e

File tree

Expand file treeCollapse file tree

2 files changed

+5
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+5
-2
lines changed

‎doc/api/axis_api.rst

Copy file name to clipboardExpand all lines: doc/api/axis_api.rst
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ Axis Label
7373
:template: autosummary.rst
7474
:nosignatures:
7575

76+
Axis.label
7677
Axis.set_label_coords
7778
Axis.set_label_position
7879
Axis.set_label_text
79-
Axis.get_label
8080
Axis.get_label_position
8181
Axis.get_label_text
8282

@@ -235,6 +235,8 @@ specify a matching series of labels. Calling ``set_ticks`` makes a
235235
:template: autosummary.rst
236236
:nosignatures:
237237

238+
Axis.get_label
239+
Axis.set_label
238240
Axis.set_ticks
239241
Axis.set_ticklabels
240242

‎lib/matplotlib/axis.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axis.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,8 @@ def __init__(self, axes, *, pickradius=15, clear=True):
639639
fontsize=mpl.rcParams['axes.labelsize'],
640640
fontweight=mpl.rcParams['axes.labelweight'],
641641
color=mpl.rcParams['axes.labelcolor'],
642-
)
642+
) #: The `.Text` object of the axis label.
643+
643644
self._set_artist_props(self.label)
644645
self.offsetText = mtext.Text(np.nan, np.nan)
645646
self._set_artist_props(self.offsetText)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.