我想知道是否有可能限制Bokeh生成图表的“pan”工具的范围?例如,假设我有这个简单的图表:
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()
工具非常好用,但我可以一直拖动直到我的图表消失。有没有办法限制拖动的范围?