Skip to content

Commit 9d12377

Browse files
authored
Merge pull request #19407 from anntzer/lp
Improve doc of default labelpad.
2 parents cd0c551 + 32e2d44 commit 9d12377

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy