在website of plotly express中,有一个使用“符号”和“标记”作为行函数的参数的示例:
import plotly.express as px
df = px.data.gapminder().query("continent == 'Oceania'")
fig = px.line(df, x='year', y='lifeExp', color='country', markers=True)
fig.show()
import plotly.express as px
df = px.data.gapminder().query("continent == 'Oceania'")
fig = px.line(df, x='year', y='lifeExp', color='country', symbol="country")
fig.show()这两个例子对我不起作用:
line() got an unexpected keyword argument 'markers'
line() got an unexpected keyword argument 'symbol'你知道为什么吗?有没有别的选择?
发布于 2021-09-13 14:55:19
感谢@Rob Raymond评论,解决方案是密谋更新:
pip install --upgrade plotlyhttps://stackoverflow.com/questions/69116429
复制相似问题