Skip to content

Commit 54d718e

Browse 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

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

doc/api/axis_api.rst

+3-1
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

+2-1
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)