Skip to content

Commit

Permalink
Closing figures correctly on matplotlib plots
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Feb 4, 2016
1 parent 435b42b commit a0de291
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion holoviews/plotting/mpl/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ def _finalize_axis(self, key):
return self.handles['axis']
else:
fig = self.handles['fig']
if self._close_figures: plt.close(fig)
if not self.overlaid:
if self._close_figures: plt.close(fig)
return fig


Expand Down

0 comments on commit a0de291

Please sign in to comment.