8000 DOC: Fix Axis.set_label reference · matplotlib/matplotlib@22c02a8 · GitHub
[go: up one dir, main page]

Skip to content
10000

Commit 22c02a8

Browse files
committed
DOC: Fix Axis.set_label reference
Follow-up to #28584.
1 parent cef6af6 commit 22c02a8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

doc/api/axis_api.rst

Lines 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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,8 @@ def __init__(self, axes, *, pickradius=15, clear=True):
637637
fontsize=mpl.rcParams['axes.labelsize'],
638638
fontweight=mpl.rcParams['axes.labelweight'],
639639
color=mpl.rcParams['axes.labelcolor'],
640-
)
640+
) #: The `.Text` object of the axis label.
641+
641642
self._set_artist_props(self.label)
642643
self.offsetText = mtext.Text(np.nan, np.nan)
643644
self._set_artist_props(self.offsetText)

0 commit comments

Comments
 (0)
0