Keyboard shortcuts / keybindings for plot tools

Hello,

I’d like to zoom in / zoom out on x axis simply by pressing key.

I also 'd like to scroll x axis by simply pressing on key.

How can I do this?

I haven’t find any information about it at

http://bokeh.pydata.org/en/latest/docs/user_guide/tools.html#configuring-plot-tools

Such feature will be very convenient when dealing with timeseries

Any help will be very nice

Kind regards

Sébastien

Hi,

There is currently no generic mechanism in Bokeh to respond to arbitrary keyboard events. Basically, I'm not keen on making a tool that would enable people to trivially build surreptitious keyloggers. (It's easy enough already with other web tools.) Additionally Bokeh is meant to be embedded inside larger web pages, and trying to key events could very likely interfere with man pages that embed Bokeh plots (the Jupyter notebook for example, might fall over badly, for example). There is a lot of investigation and discussion to have before any support for key events can potentially be added.

Right now if you want to respond to keyboard events for some specific use-case, you will have to write your own custom extension outside of the core library to do that:

  http://bokeh.pydata.org/en/latest/docs/user_guide/extensions.html

Thanks,

Bryan

···

On May 25, 2017, at 14:48, scls <[email protected]> wrote:

Hello,

I'd like to zoom in / zoom out on x axis simply by pressing key.
I also 'd like to scroll x axis by simply pressing on key.
How can I do this?

I haven't find any information about it at
http://bokeh.pydata.org/en/latest/docs/user_guide/tools.html#configuring-plot-tools

Such feature will be very convenient when dealing with timeseries

Any help will be very nice

Kind regards

Sébastien

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/600ef578-e551-4bc5-b801-f9c3f7c1573e%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Thanks Bryan.

It will be very nice if you could post an example where

“+” key press make a x-zoom on a plot

It will help a lot.

···

Le jeudi 25 mai 2017 21:48:56 UTC+2, scls a écrit :

Hello,

I’d like to zoom in / zoom out on x axis simply by pressing key.

I also 'd like to scroll x axis by simply pressing on key.

How can I do this?

I haven’t find any information about it at

http://bokeh.pydata.org/en/latest/docs/user_guide/tools.html#configuring-plot-tools

Such feature will be very convenient when dealing with timeseries

Any help will be very nice

Kind regards

Sébastien

Sébastien,

I wish that I had more hours in that day and the ability to provide guidance at the level of complete examples to every Bokeh user, but I am afraid I am frankly overwhelmed with the support burden right now. Hopefully someone else in the community with a bit more bandwidth will be able to offer something more concrete. You might also ask the users in the Bokeh gitter chat channel:

  https://gitter.im/bokeh/bokeh

Or on Stack Overflow.

Thanks,

Bryan

···

On May 26, 2017, at 00:40, scls <[email protected]> wrote:

Thanks Bryan.

It will be very nice if you could post an example where
"+" key press make a x-zoom on a plot

It will help a lot.

Le jeudi 25 mai 2017 21:48:56 UTC+2, scls a écrit :
Hello,

I'd like to zoom in / zoom out on x axis simply by pressing key.
I also 'd like to scroll x axis by simply pressing on key.
How can I do this?

I haven't find any information about it at
http://bokeh.pydata.org/en/latest/docs/user_guide/tools.html#configuring-plot-tools

Such feature will be very convenient when dealing with timeseries

Any help will be very nice

Kind regards

Sébastien

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/126ea676-42c3-48bc-bea4-bebb5635dd90%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.