holoviz / holoviews

With Holoviews, your data visualizes itself.
https://holoviews.org
BSD 3-Clause "New" or "Revised" License
2.66k stars 396 forks source link

Adding tools to an Overlay has no effect #6240

Open maximlt opened 1 month ago

maximlt commented 1 month ago

Adding tools to an Overlay via opts has no effect.

import holoviews as hv
hv.extension('bokeh')

overlay = hv.Curve([-1, -2, -3]) * hv.Curve([1, 2, 3])
overlay.opts(tools=['zoom_in'])
image

To add tools to an Overlay, you need to add them to the elements it contains, one seems to be enough:

image

(Observed in https://github.com/holoviz/holoviews/pull/6190)