Skip to content

Commit

Permalink
Small fix to legends
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jun 4, 2018
1 parent 80c81bd commit 8c145e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion holoviews/plotting/mpl/element.py
Expand Up @@ -765,7 +765,7 @@ def _adjust_legend(self, overlay, axis):
else:
if isinstance(subplot, OverlayPlot):
legend_data += subplot.handles.get('legend_data', {}).items()
if element.label and handle:
elif element.label and handle:
legend_data.append((handle, element.label))
all_handles, all_labels = list(zip(*legend_data)) if legend_data else ([], [])
data = OrderedDict()
Expand Down

0 comments on commit 8c145e7

Please sign in to comment.