0

我使用 Pandas_bokeh 内联语法和 rangetool 有一些不错的输出。我想添加一个 Span 注释,但我没有找到添加 Span 的语法。我想要的结果是某个日期时间的一些垂直行。我的代码是:

'''
Span1= Span(location=start_date,
                                  dimension='height', line_color='green',
                                  line_dash='dashed', line_width=3)
    df[cols].plot_bokeh(kind='line', 
        figsize =(1200,600),
        rangetool=True,
        yticks=[0, 10, 20, 30, 40]
    ) 

'''

谢谢你,斯蒂法尼亚。

4

0 回答 0