holoviews
holoviews copied to clipboard
Change the default tool to zoom
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.
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:
So my vote is for both to be active by default, not just Pan.
Thanks. I was actually thinking of box zoom. I don't think pan and box zoom can be active at the same time?
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.
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.
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?
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 ?
My only other thought is "please!". :-)
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.
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.