Skip to content

Commit ab8cc94

Browse files
committed
Fix matplotlib#5987: add extra space around axes
1 parent b530062 commit ab8cc94

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎lib/matplotlib/axes/_base.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ def cla(self):
10181018
)
10191019

10201020
self.titleOffsetTrans = mtransforms.ScaledTranslation(
1021-
0.0, 5.0 / 72.0, self.figure.dpi_scale_trans)
1021+
0.0, 9.0 / 72.0, self.figure.dpi_scale_trans)
10221022
self.title = mtext.Text(
10231023
x=0.5, y=1.0, text='',
10241024
fontproperties=props,

‎lib/matplotlib/rcsetup.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,13 +1109,13 @@ def validate_hist_bins(s):
11091109
'figure.autolayout': [False, validate_bool],
11101110
'figure.max_open_warning': [20, validate_int],
11111111

1112-
'figure.subplot.left': [0.125, ValidateInterval(0, 1, closedmin=True,
1112+
'figure.subplot.left': [0.155, ValidateInterval(0, 1, closedmin=True,
11131113
closedmax=True)],
1114-
'figure.subplot.right': [0.9, ValidateInterval(0, 1, closedmin=True,
1114+
'figure.subplot.right': [0.87, ValidateInterval(0, 1, closedmin=True,
11151115
closedmax=True)],
1116-
'figure.subplot.bottom': [0.1, ValidateInterval(0, 1, closedmin=True,
1116+
'figure.subplot.bottom': [0.13, ValidateInterval(0, 1, closedmin=True,
11171117
closedmax=True)],
1118-
'figure.subplot.top': [0.9, ValidateInterval(0, 1, closedmin=True,
1118+
'figure.subplot.top': [0.87, ValidateInterval(0, 1, closedmin=True,
11191119
closedmax=True)],
11201120
'figure.subplot.wspace': [0.2, ValidateInterval(0, 1, closedmin=True,
11211121
closedmax=False)],

‎matplotlibrc.template‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -401,10 +401,10 @@ backend : %(backend)s
401401

402402
# The figure subplot parameters. All dimensions are a fraction of the
403403
# figure width or height
404-
#figure.subplot.left : 0.125 # the left side of the subplots of the figure
405-
#figure.subplot.right : 0.9 # the right side of the subplots of the figure
406-
#figure.subplot.bottom : 0.1 # the bottom of the subplots of the figure
407-
#figure.subplot.top : 0.9 # the top of the subplots of the figure
404+
#figure.subplot.left : 0.155 # the left side of the subplots of the figure
405+
#figure.subplot.right : 0.87 # the right side of the subplots of the figure
406+
#figure.subplot.bottom : 0.13 # the bottom of the subplots of the figure
407+
#figure.subplot.top : 0.87 # the top of the subplots of the figure
408408
#figure.subplot.wspace : 0.2 # the amount of width reserved for blank space between subplots
409409
#figure.subplot.hspace : 0.2 # the amount of height reserved for white space between subplots
410410

0 commit comments

Comments
 (0)