☰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

Disable zoom

Community Support
James_Nagle
James_Nagle

Hi. I have built a page that takes data from the Steam API and plots the users playtime for the past 2 weeks and all time as 2 bar charts. This is an example of my profile:
http://www.anquantarbuile.com/steamvis/76561198008481956

Is there anyway to disable zooming in/out of the chart on a mouse scroll? I have added plot.toolbar_location = None to both plots but I am still able to zoom in or pan the bars off the chart completely. Is there anyway to prevent this?

Thanks,

James

⌁   Link to post
Bryan
Bryan

Hi James,

You can specify what tools you want (or don't):

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

Bryan

···

On Aug 21, 2015, at 12:54 PM, James Nagle <maniacalcorp@gmail.com> wrote:

Hi. I have built a page that takes data from the Steam API and plots the users playtime for the past 2 weeks and all time as 2 bar charts. This is an example of my profile:
http://www.anquantarbuile.com/steamvis/76561198008481956

Is there anyway to disable zooming in/out of the chart on a mouse scroll? I have added plot.toolbar_location = None to both plots but I am still able to zoom in or pan the bars off the chart completely. Is there anyway to prevent this?

Thanks,
James

--
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/9d492749-c49a-4822-ab11-1929777b3706%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

⌁   Link to post
James_Nagle
James_Nagle

Hi Bryan,

Thank you for your help, I added tools=“” and it works just like I wanted it to, I didn’t understand that I could do that.

Thanks again

James

···

On Friday, August 21, 2015 at 6:57:58 PM UTC+1, Bryan Van de ven wrote:

Hi James,

You can specify what tools you want (or don’t):

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

Bryan

On Aug 21, 2015, at 12:54 PM, James Nagle maniac...@gmail.com wrote:

Hi. I have built a page that takes data from the Steam API and plots the users playtime for the past 2 weeks and all time as 2 bar charts. This is an example of my profile:

http://www.anquantarbuile.com/steamvis/76561198008481956

Is there anyway to disable zooming in/out of the chart on a mouse scroll? I have added plot.toolbar_location = None to both plots but I am still able to zoom in or pan the bars off the chart completely. Is there anyway to prevent this?

Thanks,

James

–
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+un...@continuum.io.

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

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/9d492749-c49a-4822-ab11-1929777b3706%40continuum.io.

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

⌁   Link to post

End of archived discussion · Replies are disabled