Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed setting of matplotlib axis labels #1068

Merged
merged 1 commit into from
Jan 17, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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