liyangbit / PyDataLab

open source for wechat-official-account (ID: PyDataLab)
http://liyangbit.com/
381 stars 238 forks source link

plotly_express 报错 #7

Open Lix1993 opened 3 years ago

Lix1993 commented 3 years ago
wind = px.data.wind()

px.line_polar(wind, r="value", theta="direction", color="strength", line_close=True,
            color_discrete_sequence=px.colors.sequential.Plotly[-2::-1])

AttributeError Traceback (most recent call last)

in 2 3 px.line_polar(wind, r="value", theta="direction", color="strength", line_close=True, ----> 4 color_discrete_sequence=px.colors.sequential.Plotly[-2::-1]) AttributeError: module '_plotly_utils.colors.sequential' has no attribute 'Plotly'