如何更改 Plotly Wind rose 极轴?

How to change Plotly Wind rose polar axis?

我创建了一个 Plotly windrose 并想将内圆限制更改为其他一些值(以获得与我的其他风玫瑰相同的圆限制)。在这里,我想将内圈大小更改为 0、2、4、6、8、10 到 0、2.5、5、7.5、10。这是我的代码,我当前的 windrose 已经附上了。

import plotly.express as px

df = px.data.wind()
fig = px.bar_polar(df, r="frequency", theta="direction",
                   color="strength", template="plotly_dark",
                   color_discrete_sequence=px.colors.sequential.Plasma_r)
fig.show()

这没有很好的记录,但它具有与 tickmode--array.

类似的行为
import plotly.express as px

df = px.data.wind()
fig = px.bar_polar(df, r="frequency", theta="direction",
                   color="strength", template="plotly_dark",
                   color_discrete_sequence= px.colors.sequential.Plasma_r)
fig.update_layout(
    polar=dict(
        radialaxis=dict(tickvals = [0, 2.5, 5, 7.5, 10])
    )
)
fig.show()