8000 DOC: Clarify y paramter in Axes.set_title · AdeelH/matplotlib@af83f65 · GitHub
[go: up one dir, main page]

Skip to content

Commit af83f65

Browse files
committed
DOC: Clarify y paramter in Axes.set_title
Autopositioning only works if rcParams["axes.titley"] is None in addition to y being None in the function call. If rcParams["axes.titley"] is set to a float, there's no way to enforce autopositioning by function call parameters (passing y=None has no effect in this case).
1 parent ac2a145 commit af83f65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ def set_title(self, label, fontdict=None, loc=None, pad=None, *, y=None,
119119
120120
y : float, default: :rc:`axes.titley`
121121
Vertical Axes loation for the title (1.0 is the top). If
122-
None (the default), y is determined automatically to avoid
123-
decorators on the Axes.
122+
None (the default) and :rc:`axes.titley` is also None, y is
123+
determined automatically to avoid decorators on the Axes.
124124
125125
pad : float, default: :rc:`axes.titlepad`
126126
The offset of the title from the top of the Axes, in points.

0 commit comments

Comments
 (0)
0