File tree Expand file tree Collapse file tree 4 files changed +6
-2
lines changed Expand file tree Collapse file tree 4 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1026,9 +1026,10 @@ def cla(self):
1026
1026
size = rcParams ['axes.titlesize' ],
1027
1027
weight = rcParams ['axes.titleweight' ]
1028
1028
)
1029
-
1029
+ title_offset_points = rcParams [ 'axes.titlepad' ]
1030
1030
self .titleOffsetTrans = mtransforms .ScaledTranslation (
1031
- 0.0 , 9.0 / 72.0 , self .figure .dpi_scale_trans )
1031
+ 0.0 , title_offset_points / 72.0 ,
1032
+ self .figure .dpi_scale_trans )
1032
1033
self .title = mtext .Text (
1033
1034
x = 0.5 , y = 1.0 , text = '' ,
1034
1035
fontproperties = props ,
Original file line number Diff line number Diff line change @@ -177,6 +177,7 @@ axes.grid : False # display grid or not
177
177
axes.grid.which : major
178
178
axes.grid.axis : both
179
179
axes.titlesize : large # fontsize of the axes title
180
+ axes.titlepad : 5.0 # pad between axes and title in points
180
181
axes.titleweight : normal # font weight for axes title
181
182
axes.labelsize : medium # fontsize of the x any y labels
182
183
axes.labelpad : 5.0 # space between label and axis
Original file line number Diff line number Diff line change @@ -980,6 +980,7 @@ def validate_hist_bins(s):
980
980
'axes.titlesize' : ['large' , validate_fontsize ], # fontsize of the
981
981
# axes title
982
982
'axes.titleweight' : ['normal' , six .text_type ], # font weight of axes title
983
+ 'axes.titlepad' : [9.0 , validate_float ], # pad from axes top to title in points
983
984
'axes.grid' : [False , validate_bool ], # display grid or not
984
985
'axes.grid.which' : ['major' , validate_axis_locator ], # set wether the gid are by
985
986
# default draw on 'major'
Original file line number Diff line number Diff line change @@ -294,6 +294,7 @@ backend : $TEMPLATE_BACKEND
294
294
#axes.linewidth : 1.0 # edge linewidth
295
295
#axes.grid : False # display grid or not
296
296
#axes.titlesize : large # fontsize of the axes title
297
+ #axes.titlepad : 9.0 # pad between axes and title in points
297
298
#axes.labelsize : medium # fontsize of the x any y labels
298
299
#axes.labelpad : 5.0 # space between label and axis
299
300
#axes.labelweight : normal # weight of the x and y labels
You can’t perform that action at this time.
0 commit comments