Skip to content

Commit

Permalink
Handle issue with multiple legends in Bokeh sync_legends (#5830)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored Jul 25, 2023
1 parent 0bcecd1 commit f73e703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion holoviews/plotting/bokeh/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ def sync_legends(bokeh_layout):
if r.name:
items[r.name].append(r)
if fig.legend:
click_policies.add(fig.legend.click_policy)
click_policies.add(fig.legend[0].click_policy)

click_policies.discard("none") # If legend is not visible, click_policy is "none"
if len(click_policies) > 1:
Expand Down

0 comments on commit f73e703

Please sign in to comment.