Skip to content

Commit

Permalink
Merge pull request #1132 from ioam/mpl_title_update
Browse files Browse the repository at this point in the history
Update matplotlib titles rather than redrawing
  • Loading branch information
jlstevens authored Feb 13, 2017
2 parents 903e8ef + f145acc commit 13c3c21
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion holoviews/plotting/mpl/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,10 @@ def _finalize_axis(self, key, title=None, dimensions=None, ranges=None, xticks=N
title = self._format_title(key)
if self.show_title and title is not None:
fontsize = self._fontsize('title')
self.handles['title'] = axis.set_title(title, **fontsize)
if 'title' in self.handles:
self.handles['title'].set_text(title)
else:
self.handles['title'] = axis.set_title(title, **fontsize)

# Apply subplot label
self._subplot_label(axis)
Expand Down

0 comments on commit 13c3c21

Please sign in to comment.