Skip to content
Permalink
Browse files

Merge pull request #1152 from ioam/allow_no_dim_cbar

Fixed issue with no colorbar dimension and unicode label
  • Loading branch information...
jlstevens committed Feb 28, 2017
2 parents 3aa315f + 03341f7 commit 96c36dfd0be21a3573104f8a68abb481a96c57d0
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 96c36df

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