Skip to content

Commit

Permalink
Merge pull request #1037 from ioam/layout_fix_enable
Browse files Browse the repository at this point in the history
Enabled matplotlib layout fix by default
  • Loading branch information
jlstevens committed Jan 17, 2017
2 parents 3ac31c3 + f9f70c1 commit 18b87e1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions holoviews/plotting/mpl/plot.py
Expand Up @@ -698,16 +698,14 @@ class LayoutPlot(GenericLayoutPlot, CompositePlot):
Specifies the space between horizontally adjacent elements in the grid.
Default value is set conservatively to avoid overlap of subplots.""")

vspace = param.Number(default=0.1, doc="""
vspace = param.Number(default=0.3, doc="""
Specifies the space between vertically adjacent elements in the grid.
Default value is set conservatively to avoid overlap of subplots.""")

fontsize = param.Parameter(default={'title':16}, allow_None=True)

# Whether to enable fix for non-square figures
# Will be enabled by default in v1.7
# If enabled default vspace should be increased to 0.3
v17_layout_format = False
v17_layout_format = True

def __init__(self, layout, **params):
super(LayoutPlot, self).__init__(layout=layout, **params)
Expand Down Expand Up @@ -1045,7 +1043,8 @@ def initialize_plot(self):
cbar_plot._draw_colorbar(redraw=False)
adjoined = self.traverse(specs=[AdjointLayoutPlot])
for adjoined in adjoined:
adjoined.adjust_positions(redraw=False)
if len(adjoined.subplots) > 1:
adjoined.adjust_positions(redraw=False)
return self._finalize_axis(None)


Expand Down

0 comments on commit 18b87e1

Please sign in to comment.