☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Zoom with one blocked point

Community Support
Bryan
Bryan

Hi Lionel,

I am not entirely sure from your description, but it sounds like you just want to have panning enabled in one dimension, but not another? If so, constraining the pan tool is described here:

  http://bokeh.pydata.org/en/latest/docs/user_guide/tools.html#pantool

Thanks,

Bryan

···

On May 18, 2015, at 8:10 AM, lionel.chiron@gmail.com wrote:

Hi,

I 'd like to zoom on the y axis with the Wheel tool but keeping the graph "glued" to the line y=0..
Is there a simple way to do that ?

Thanks

Lionel

--
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 bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/79a5a832-9b51-40a0-99ea-e2185fa89d62%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

⌁   Link to post
Chiron_Lionel
Chiron_Lionel

Hi Bryan,

thanks for your fast answer,

my problem is not about allowing one dimension…

I didn’t explained well… simple problem but not so easy to explain… My problem is to zoom on the edge (with the wheel tool) but not around the point on which is stopped the mouse but around the origin.

ie : If I “edge-zoom” on y axis I would like the 0 to be always visible …

Wish I was clearer :wink:

Lionel

···

2015-05-18 18:57 GMT+02:00 Bryan Van de Ven bryan@bokeh.org:

Hi Lionel,

I am not entirely sure from your description, but it sounds like you just want to have panning enabled in one dimension, but not another? If so, constraining the pan tool is described here:

    [http://bokeh.pydata.org/en/latest/docs/user_guide/tools.html#pantool](http://bokeh.pydata.org/en/latest/docs/user_guide/tools.html#pantool)

Thanks,

Bryan

On May 18, 2015, at 8:10 AM, lionel.chiron@gmail.com wrote:

Hi,

I 'd like to zoom on the y axis with the Wheel tool but keeping the graph “glued” to the line y=0…

Is there a simple way to do that ?

Thanks

Lionel

–

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 bokeh+unsubscribe@continuum.io.

To post to this group, send email to bokeh@continuum.io.

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/79a5a832-9b51-40a0-99ea-e2185fa89d62%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

–

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 bokeh+unsubscribe@continuum.io.

To post to this group, send email to bokeh@continuum.io.

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/497C1282-8788-466E-A89B-DA29529CD391%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

⌁   Link to post
Bryan
Bryan

Hi Chiron,

I see, zoom/pan limits is still an open issue:

  Support for pan/zoom range limits · Issue #572 · bokeh/bokeh · GitHub

Bryan

···

On May 18, 2015, at 12:04 PM, Chiron Lionel <lionel.chiron@gmail.com> wrote:

Hi Bryan,

thanks for your fast answer,
my problem is not about allowing one dimension..
I didn't explained well.. simple problem but not so easy to explain... My problem is to zoom on the edge (with the wheel tool) but not around the point on which is stopped the mouse but around the origin.
ie : If I "edge-zoom" on y axis I would like the 0 to be always visible ..
Wish I was clearer :wink:

Lionel

2015-05-18 18:57 GMT+02:00 Bryan Van de Ven <bryan@bokeh.org>:
Hi Lionel,

I am not entirely sure from your description, but it sounds like you just want to have panning enabled in one dimension, but not another? If so, constraining the pan tool is described here:

        http://bokeh.pydata.org/en/latest/docs/user_guide/tools.html#pantool

Thanks,

Bryan

> On May 18, 2015, at 8:10 AM, lionel.chiron@gmail.com wrote:
>
> Hi,
>
> I 'd like to zoom on the y axis with the Wheel tool but keeping the graph "glued" to the line y=0..
> Is there a simple way to do that ?
>
> Thanks
>
> Lionel
>
> --
> 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 bokeh+unsubscribe@continuum.io.
> To post to this group, send email to bokeh@continuum.io.
> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/79a5a832-9b51-40a0-99ea-e2185fa89d62%40continuum.io\.
> For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

--
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 bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/497C1282-8788-466E-A89B-DA29529CD391%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

--
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 bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/CAMaAo7g0rQFVTNvcagJ83pGS%3Di-aVjsqoaZuAk0etNUNs4Wqbw%40mail.gmail.com\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

⌁   Link to post

End of archived discussion · Replies are disabled