Skip to content

Commit

Permalink
Fixed issue with no colorbar dimension and unicode label
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Feb 25, 2017
1 parent 624c647 commit 91d0206
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions holoviews/plotting/mpl/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,8 +600,9 @@ def _draw_colorbar(self, dim=None, redraw=True):
# Get colorbar label
dim = element.get_dimension(dim)
if dim is None:
dim = element.vdims[0]
label = str(dim)
label = ''
else:
label = dim.pprint_label

padding = self.cbar_padding
width = self.cbar_width
Expand Down

0 comments on commit 91d0206

Please sign in to comment.