【发布时间】:2021-12-02 20:54:26
【问题描述】:
使用 Plotly,可以使用 Plotly Express 中的 animation_frame` 参数轻松创建动画,记录在 here。我想做同样的事情,但有两个参数(或者最终更多)。将伪代码添加到他们在我发布的链接中提供的示例中,我想做类似的事情:
import plotly.express as px
df = px.data.gapminder()
px.scatter(df,
x = "gdpPercap",
y = "lifeExp",
animation_frame_1 = "year",
animation_frame_2 = "another parameter"
)
并因此获得此图:
这可能吗?如何?我对动画功能(即随时间自动扫描参数)不感兴趣,只对让滑块探索数据感兴趣。
【问题讨论】: