在网络浏览器中显示 Bokeh 生成的图形时,可以放大。是否可以仅在 x 方向上放大,而不是在 y 方向上?
我正在考虑显示一个时间序列 f(t),其中 f(t) 的范围很小且固定,但数据存在很长时间 t。如果能够专注于数据历史中的特定时刻,同时保持 f(t) 值的整个范围,那就太好了。
非常感谢,
汉斯
I just added a PR for this feature: https://github.com/ContinuumIO/bokeh/pull/508
It should be in master tonight, and part of the upcoming release. Basically it adds new tool names: xpan
, ypan
, xwheel_zoom
, ywheel_zoom
Sorry this took so long, sometimes small but important things get lost in the shuffle.
编辑:从 Bokeh 0.5 开始,这些工具现在可用:xpan, ypan, xwheel_zoom, ywheel_zoom
.
正如 Philliproso 上面指出的,这仍然是一个悬而未决的问题。我们希望在接下来的几个版本中实现它。
同时,box_zoom 工具可以直观地规定缩放边界。