Skip to content

Commit

Permalink
Fix mpl OverlayPlot legend_labels
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jun 24, 2022
1 parent 550f16b commit 31cac7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion holoviews/plotting/mpl/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -1091,10 +1091,10 @@ def _adjust_legend(self, overlay, axis):
legend_plot = True
dimensions = overlay.kdims
title = ', '.join([d.label for d in dimensions])
labels = self.legend_labels
for key, subplot in self.subplots.items():
element = overlay.data.get(key, False)
if not subplot.show_legend or not element: continue
labels = subplot.legend_labels
title = ', '.join([d.name for d in dimensions])
handle = subplot.traverse(lambda p: p.handles['artist'],
[lambda p: 'artist' in p.handles])
Expand Down

0 comments on commit 31cac7e

Please sign in to comment.