我的X和Y轴都是2.000e + 7和1.5040e + 7的形式。 X轴是日期时间,如2017-08-02 10:20:37.260 和Y轴应该有整数值,如5000。
如何更正此问题?enter image description here
答案 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轴类型作为日期时间有助于解决问题。