holoviews icon indicating copy to clipboard operation
holoviews copied to clipboard

Change the default tool to zoom

Open MarcSkovMadsen opened this issue 1 year ago • 6 comments

I see over and over again that users gets confused that the default tool is pan and not zoom.

Normally the plots are zoomed out so that you can see anything. The first action you want to do (if any) is to zoom into that interesting area you have found. There is no incentive to pan first.

Its simply not a good user experience to have to first select a different tool and then do what you want. It confuses beginning users and slows you down as an experienced user. It makes it harder to mix in production with other plotting frameworks as they typically enable zoom by default. Users don't like to have to understand multiple different user interfaces.

MarcSkovMadsen avatar Aug 18 '22 05:08 MarcSkovMadsen

I agree; zoom should be enabled by default! But note that Pan and Zoom are not actually alternatives; both can be active at once since they use different events:

image

So my vote is for both to be active by default, not just Pan.

jbednar avatar Aug 18 '22 17:08 jbednar

Thanks. I was actually thinking of box zoom. I don't think pan and box zoom can be active at the same time?

MarcSkovMadsen avatar Aug 18 '22 18:08 MarcSkovMadsen

Right; box and pan use the same events. So I'd vote against that, because making Box enabled makes Pan not enabled, while making Scroll Zoom doesn't remove the Pan capabilities, and thus seems like a more powerful default. But maybe I'm biased because I got out of the habit of using box zoom back when Bokeh couldn't enforce an aspect ratio and it messed up everything, so I stopped even trying it. Not sure how typical I am in that respect.

jbednar avatar Aug 18 '22 18:08 jbednar

I've also tried the pan + wheel_zoom combination. The pro of that combination is 1) You almost never have to change tool 2) It would not be a "breaking" change. The con is that other plotting frameworks like Plot uses box-zoom by default. So users often expect that.

MarcSkovMadsen avatar Aug 22 '22 05:08 MarcSkovMadsen

The con is that other plotting frameworks like Plot uses box-zoom by default

You mean Plotly? And what other frameworks have this default behavior?

I'm more used to Pan + Wheel Zoom as a default, as you get on Google Maps for instance, it feels very natural. The only thing I'd like to check is how Bokeh Wheel Zoom tools behave on mobile.

EDIT: I assume this discussion could be applied to HoloViews too? What do you think @jlstevens about the default Bokeh tools?

maximlt avatar Aug 22 '22 08:08 maximlt

I do think that pan+wheel_zoom is the most sensible default.

It looks like by default HoloViews only activates the pan tool: I would be happy to see the wheel_zoom also activated by default and I don't think this should really break backwards compatibility for anyone. Any thoughts @jbednar @philippjfr ?

jlstevens avatar Aug 22 '22 09:08 jlstevens

My only other thought is "please!". :-)

jbednar avatar Oct 14 '22 02:10 jbednar

The only thing I'd like to check is how Bokeh Wheel Zoom tools behave on mobile.

Well pinching doesn't seem to be supported by Bokeh so wheel zoom is basically a no-op on mobile.

maximlt avatar Oct 14 '22 07:10 maximlt

Bokeh docs claim pinch is supported, but I too see that they aren't, which seems like a bug report for Bokeh. I think that's separate from whether wheel/pinch zoom is the default.

jbednar avatar Oct 14 '22 09:10 jbednar