我想知道是否可以限制散景生成图的“平移”工具的范围?例如,假设我有这个简单的情节:
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()
ypan 工具效果很好,但我可以继续平移,直到我的图表消失。有什么办法可以约束平底锅吗?