Skip to content

Commit

Permalink
Fixed BarPlot legend titles
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Mar 24, 2015
1 parent 95d5ead commit 3cf009f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion holoviews/plotting/chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ def _create_bars(self, axis, element):
bars[tuple(val_key)] = bar
prev += val[0] if np.isfinite(val[0]) else 0
labels.append(label)
title = [str(element.key_dimensions[self._dimensions[cg]])
title = [str(element.key_dimensions[indices[cg]])
for cg in self.color_by if indices[cg] < ndims]
if any(len(l) for l in labels):
axis.legend(title=', '.join(title))
Expand Down

0 comments on commit 3cf009f

Please sign in to comment.