8000 Improve doc of default labelpad. · matplotlib/matplotlib@32e2d44 · GitHub
[go: up one dir, main page]

Skip to content

Commit 32e2d44

Browse files
committed
Improve doc of default labelpad.
1 parent dbe3622 commit 32e2d44

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3303,9 +3303,9 @@ def set_xlabel(self, xlabel, fontdict=None, labelpad=None, *,
33033303
xlabel : str
33043304
The label text.
33053305
3306-
labelpad : float, default: None
3306+
labelpad : float, default: :rc:`axes.labelpad`
33073307
Spacing in points from the axes bounding box including ticks
3308-
and tick labels.
3308+
and tick labels. If None, the previous value is left as is.
33093309
33103310
loc : {'left', 'center', 'right'}, default: :rc:`xaxis.labellocation`
33113311
The label position. This is a high-level alternative for passing
@@ -3647,9 +3647,9 @@ def set_ylabel(self, ylabel, fontdict=None, labelpad=None, *,
36473647
ylabel : str
36483648
The label text.
36493649
3650-
labelpad : float, default: None
3650+
labelpad : float, default: :rc:`axes.labelpad`
36513651
Spacing in points from the axes bounding box including ticks
3652-
and tick labels.
3652+
and tick labels. If None, the previous value is left as is.
36533653
36543654
loc : {'bottom', 'center', 'top'}, default: :rc:`yaxis.labellocation`
36553655
The label position. This is a high-level alternative for passing

0 commit comments

Comments
 (0)
0