'Bokeh: how to disable left mouse click scrolling?
A basic example of code with empty grid but it can be applied to all figures:
from bokeh.plotting import figure, show, output_file
output_file('test.html')
p = figure(x_range=(0,1), y_range=(0,1), toolbar_location=None)
show(p)
When I move mouse cursor while left click left pressed, x and y axis move. In my project, I place figures in the grid but it's annoying that the figures move when I move them with the mouse, I would like the grid to stay still. Thank you for your help.
Solution 1:[1]
The solution are here: https://docs.bokeh.org/en/latest/docs/user_guide/tools.html#setting-the-active-tools
I add this line:
p.toolbar.active_drag = None
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Rinnosuke |
