From 7daf2475f07137631744d3abf5e80d4b5bd04ef7 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Mon, 7 Mar 2016 16:21:25 -0500 Subject: [PATCH] Fix #5987: add extra space around axes --- lib/matplotlib/axes/_base.py | 2 +- lib/matplotlib/rcsetup.py | 8 ++++---- matplotlibrc.template | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/matplotlib/axes/_base.py b/lib/matplotlib/axes/_base.py index 16138d25f248..9ff093357780 100644 --- a/lib/matplotlib/axes/_base.py +++ b/lib/matplotlib/axes/_base.py @@ -1028,7 +1028,7 @@ def cla(self): ) self.titleOffsetTrans = mtransforms.ScaledTranslation( - 0.0, 5.0 / 72.0, self.figure.dpi_scale_trans) + 0.0, 9.0 / 72.0, self.figure.dpi_scale_trans) self.title = mtext.Text( x=0.5, y=1.0, text='', fontproperties=props, diff --git a/lib/matplotlib/rcsetup.py b/lib/matplotlib/rcsetup.py index 776021de1976..25daefae815e 100644 --- a/lib/matplotlib/rcsetup.py +++ b/lib/matplotlib/rcsetup.py @@ -1129,13 +1129,13 @@ def validate_hist_bins(s): 'figure.autolayout': [False, validate_bool], 'figure.max_open_warning': [20, validate_int], - 'figure.subplot.left': [0.125, ValidateInterval(0, 1, closedmin=True, + 'figure.subplot.left': [0.155, ValidateInterval(0, 1, closedmin=True, closedmax=True)], - 'figure.subplot.right': [0.9, ValidateInterval(0, 1, closedmin=True, + 'figure.subplot.right': [0.87, ValidateInterval(0, 1, closedmin=True, closedmax=True)], - 'figure.subplot.bottom': [0.1, ValidateInterval(0, 1, closedmin=True, + 'figure.subplot.bottom': [0.13, ValidateInterval(0, 1, closedmin=True, closedmax=True)], - 'figure.subplot.top': [0.9, ValidateInterval(0, 1, closedmin=True, + 'figure.subplot.top': [0.87, ValidateInterval(0, 1, closedmin=True, closedmax=True)], 'figure.subplot.wspace': [0.2, ValidateInterval(0, 1, closedmin=True, closedmax=False)], diff --git a/matplotlibrc.template b/matplotlibrc.template index ed220657175d..ad0932e4f872 100644 --- a/matplotlibrc.template +++ b/matplotlibrc.template @@ -427,10 +427,10 @@ backend : $TEMPLATE_BACKEND # The figure subplot parameters. All dimensions are a fraction of the # figure width or height -#figure.subplot.left : 0.125 # the left side of the subplots of the figure -#figure.subplot.right : 0.9 # the right side of the subplots of the figure -#figure.subplot.bottom : 0.1 # the bottom of the subplots of the figure -#figure.subplot.top : 0.9 # the top of the subplots of the figure +#figure.subplot.left : 0.155 # the left side of the subplots of the figure +#figure.subplot.right : 0.87 # the right side of the subplots of the figure +#figure.subplot.bottom : 0.13 # the bottom of the subplots of the figure +#figure.subplot.top : 0.87 # the top of the subplots of the figure #figure.subplot.wspace : 0.2 # the amount of width reserved for blank space between subplots #figure.subplot.hspace : 0.2 # the amount of height reserved for white space between subplots