Skip to content

Commit

Permalink
Fixed setting of matplotlib axis labels
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jan 17, 2017
1 parent 8e67b33 commit d42e4e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions holoviews/plotting/mpl/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,15 @@ def _finalize_axis(self, key, title=None, dimensions=None, ranges=None, xticks=N
axis = self.handles['axis']

subplots = list(self.subplots.values()) if self.subplots else []
if not self.overlaid and key is not None:
if self.zorder == 0 and key is not None:
if self.bgcolor:
if LooseVersion(mpl.__version__) <= '1.5.9':
axis.set_axis_bgcolor(self.bgcolor)
else:
axis.set_facecolor(self.bgcolor)

# Apply title
title = None if self.zorder > 0 else self._format_title(key)
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)
Expand Down

0 comments on commit d42e4e3

Please sign in to comment.