问题描述
我在 python 中使用 plotly,我试图在 X 和 Y 轴上使用这些类型的刻度: 10-3、10-4、10-5 等等..
有什么建议或推荐阅读吗?
我得到了这个:
解决方法
我相信你会得到的收盘价是 logartihmic axes:
import plotly.express as px
df = px.data.gapminder().query("year == 2007")
fig = px.scatter(df,x="gdpPercap",y="lifeExp",hover_name="country",log_x=True)
fig.show()