Skip to content

Commit 38a0f16

Browse files
committed
moved location of new param in rc template, and modified doc in axes set_title
1 parent f088059 commit 38a0f16

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def set_title(self, label, fontdict=None, loc=None, pad=None,
150150
'horizontalalignment': loc}
151151
152152
loc : {'center', 'left', 'right'}, str, optional
153-
Which title to set, defaults to 'center'
153+
Which title to set, defaults to rcParams['axes.titlelocation']
154154
155155
pad : float
156156
The offset of the title from the top of the axes, in points.

matplotlibrc.template

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,9 @@
293293
#axes.grid : False ## display grid or not
294294
#axes.grid.axis : both ## which axis the grid should apply to
295295
#axes.grid.which : major ## gridlines at major, minor or both ticks
296+
#axes.titlelocation : center ## alignment of the title,
297+
## possible values are left, right and center
296298
#axes.titlesize : large ## fontsize of the axes title
297-
#axes.titlelocation : center ## alignment of the title
298299
#axes.titleweight : normal ## font weight of title
299300
#axes.titlepad : 6.0 ## pad between axes and title in points
300301
#axes.labelsize : medium ## fontsize of the x any y labels

0 commit comments

Comments
 (0)