I was wondering if it is possible to limit the range of the pan tool for plotting on the bokeh. For example, let's say I had this simple plot:
from bokeh.plotting import output_file, rect, show
output_file('test.html')
rect([10,20,30], [10,20,30], width=[1,2,3], color=['red','blue','green'], height=5, plot_width=400, plot_height=400, tools = "ypan,box_zoom,reset")
show()
The ypan tool works fine, but I can continue to pan until my graph disappears. Is there a way to limit panning?
source
share