Skip to content

Commit a8fe5a8

Browse files
committed
Ensure legend_field takes precedence over legend_label
1 parent d2cb804 commit a8fe5a8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

holoviews/plotting/bokeh/element.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,6 +1062,8 @@ def _init_glyph(self, plot, mapping, properties):
10621062
if isinstance(plot_method, tuple):
10631063
# Handle alternative plot method for flipped axes
10641064
plot_method = plot_method[int(self.invert_axes)]
1065+
if 'legend_field' in properties and 'legend_label' in properties:
1066+
del properties['legend_label']
10651067
renderer = getattr(plot, plot_method)(**dict(properties, **mapping))
10661068
return renderer, renderer.glyph
10671069

0 commit comments

Comments
 (0)