如何在 plotly 中使用这种科学记数法?

问题描述

我在 python 中使用 plotly,我试图在 X 和 Y 轴上使用这些类型的刻度: 10-3、10-4、10-5 等等..

enter image description here

有什么建议或推荐阅读吗?

我得到了这个:

enter image description here

解决方法

我相信你会得到的收盘价是 logartihmic axes

enter image description here

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()