代码之家  ›  专栏  ›  技术社区  ›  Shekhar

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

  •  1
  • Shekhar  · 技术社区  · 7 年前

    我的X轴和Y轴都以2.000e+7和1.5040e+7的形式出现。 Y轴应该有像5000这样的整数值。

    我怎样才能纠正这个问题? enter image description here

    1 回复  |  直到 7 年前
        1
  •  0
  •   Shekhar    7 年前
    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")
    

    作为datetime的X轴类型帮助解决了这个问题。