我正试图在Bokeh2.0中为图表添加日期范围滑块
代码如下所示(数据来自pandas中的数据帧):
p = figure(plot_width = 800, plot_height = 350, x_axis_type = "datetime")
p.line(df['date'], df['cases'], color='navy', alpha=0.5, legend_label = "cases", line_width = 2)
如何添加滑块来设置和缩小焦点
谢谢大家,干杯
乌尔里希
Tags:
有几件事需要注意:
CDSView filters are not compatible with glyphs with connected topology suchs as Line and Patch
警告。我让你来决定这是否是你关心的事情circle
而不是line
效果很好相关问题 更多 >
编程相关推荐