Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 276c489

Browse files
committed
STY: increase axes.titlepad from 4 to 6; closes #7660
With the default Axes title font this leaves plenty of room for descenders, and barely enough room for a subscript. I'm reluctant to make the pad any larger because I think that in the most common cases it would elevate the title too much, and take too much room.
1 parent db9b188 commit 276c489

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/matplotlib/rcsetup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ def validate_animation_writer_path(p):
10741074
'axes.titlesize': ['large', validate_fontsize], # fontsize of the
10751075
# axes title
10761076
'axes.titleweight': ['normal', six.text_type], # font weight of axes title
1077-
'axes.titlepad': [4.0, validate_float], # pad from axes top to title in points
1077+
'axes.titlepad': [6.0, validate_float], # pad from axes top to title in points
10781078
'axes.grid': [False, validate_bool], # display grid or not
10791079
'axes.grid.which': ['major', validate_axis_locator], # set wether the gid are by
10801080
# default draw on 'major'

matplotlibrc.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ backend : $TEMPLATE_BACKEND
297297
#axes.linewidth : 0.8 # edge linewidth
298298
#axes.grid : False # display grid or not
299299
#axes.titlesize : large # fontsize of the axes title
300-
#axes.titlepad : 4.0 # pad between axes and title in points
300+
#axes.titlepad : 6.0 # pad between axes and title in points
301301
#axes.labelsize : medium # fontsize of the x any y labels
302302
#axes.labelpad : 4.0 # space between label and axis
303303
#axes.labelweight : normal # weight of the x and y labels

0 commit comments

Comments
 (0)