[英]Viewing x_range attributes on a Bokeh figure object?
I'm trying to fix an older example for Bokeh where this no longer works:我正在尝试为 Bokeh 修复一个不再有效的旧示例:
callback = CustomJS(code="console.log('stuff')")
fig.x_range.callback = callback
Now this seems to be the solution:现在这似乎是解决方案:
callback = CustomJS(code="console.log('stuff')")
plot.x_range.js_on_change('start', callback)
How do I check what other attributes are there on the x_range
object, other than start
?我如何检查x_range
object 上除了start
之外还有哪些其他属性?
from bokeh.models import DataRange1d
print(DataRange1d.properties())
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.