Bokeh创建的图形中的X和Y值问题

时间:2017-09-20 20:19:35

标签: bokeh

我的X和Y轴都是2.000e + 7和1.5040e + 7的形式。 X轴是日期时间,如2017-08-02 10:20:37.260 和Y轴应该有整数值,如5000。

如何更正此问题?enter image description here

1 个答案:

答案 0 :(得分:0)

plot = figure(plot_width=800, plot_height=450, tools=[hover, TOOLS], 
       title='Order/Execution Snapshot with Price Levels',
       x_axis_label='Date', y_axis_label='Price',x_axis_type="datetime")

X轴类型作为日期时间有助于解决问题。