Skip to main content
 首页 » 编程设计

python - 使用 Bokeh 禁用轴上的科学记数法

2023年05月26日11lvdongjie

如何禁用 Bokeh 轴上数字的科学输出? 例如,我想要 400000 而不是 4.00e+5

在 mpl 中:ax.get_xaxis().get_major_formatter().set_scientific(False)

请您参考如下方法:

你可以用这个禁用科学记数法:

fig = plt.figure(title='xxx', x_axis_type='datetime') 
fig.left[0].formatter.use_scientific = False