Skip to content
Permalink
Browse files

Fixed issue with no colorbar dimension and unicode label

  • Loading branch information...
Philipp Rudiger Philipp Rudiger
Philipp Rudiger authored and Philipp Rudiger committed Feb 25, 2017
1 parent be6cf79 commit 03341f7062208d7e07797188dddacb0d7dd6bd81
Showing with 6 additions and 3 deletions.
  1. +6 −3 holoviews/plotting/mpl/element.py
@@ -600,9 +600,12 @@ 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)
if dim:
label = dim.pprint_label
elif element.vdims:
label = element.vdims[0].pprint_label
elif dim is None:
label = ''

padding = self.cbar_padding
width = self.cbar_width

0 comments on commit 03341f7

Please sign in to comment.
You can’t perform that action at this time.