简体   繁体   English

更改散景中的轴的股票代码标签

[英]Changing ticker label of axis in bokeh

I have created a bokeh plot. 我创建了一个散景图。 But ticker of y axis is showing values in power of 10. As shown 但是y轴的代号显示的是10的幂的值。 这里

how can I change it to values like 20000,40000,60000,80000 and so on. 如何将其更改为20000、40000、60000、80000等值。

Turn off use_scientific : 关闭use_scientific

fig = figure()
x = np.linspace(0, 100)
fig.line(x, x**4)
yaxis = fig.yaxis[0]
yaxis.formatter.use_scientific = False
show(fig)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM