Skip to content

Commit

Permalink
Fix matplotlib#5987: add extra space around axes
Browse files Browse the repository at this point in the history
  • Loading branch information
mdboom committed Mar 7, 2016
1 parent b530062 commit ab8cc94
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/matplotlib/axes/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,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,
Expand Down
8 changes: 4 additions & 4 deletions lib/matplotlib/rcsetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -1109,13 +1109,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)],
Expand Down
8 changes: 4 additions & 4 deletions matplotlibrc.template
Original file line number Diff line number Diff line change
Expand Up @@ -401,10 +401,10 @@ backend : %(backend)s

# 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

Expand Down

0 comments on commit ab8cc94

Please sign in to comment.