slider changes don't trigger axes (x, y, colorbar) adjustments
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- plotly, python
调研方向
使用 plotly 5.24.1 运行提供的 gapminder MRE,并将移动 animation slider 后的坐标轴和 colorbar 与下载的 plot 进行比较。跟踪此示例使用的动画更新入口点;当 slider 的变化刷新 x-axis、y-axis 和 colorbar 的范围,使其与所选数据匹配时,即完成。
由索引模型根据 Issue 内容生成。
描述
When the slider moves, the axes don't adjust to the new data range, but if we download the plot with the current slider selection the view is correct.
https://github.com/user-attachments/assets/9305c8f8-4724-4b96-9f0f-dbaf5159df4c
MRE
plotly==5.24.1
import plotly.express as px
import random
df = px.data.gapminder()
df['numeric_var'] = df['year'].apply(lambda x: x - 1900 + random.randint(-5,5))
fig = px.scatter(
df, x="gdpPercap", y="numeric_var", animation_frame="year", animation_group="country",
color="numeric_var", hover_name="country",
)
fig.show()
- 主要语言
- Python
- 星标
- 18.8k
- 派生
- 2.8k
- 平均合并
- 13 小时 41 分钟
- 30 天内合并 PR
- 21
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
plotly/plotly.py 的其他 Issue
-
P3 size: 1 task
难度 2/5 1-3 小时 新手友好度 65/100
-
P3 size: 1 task
难度 2/5 1-3 小时 新手友好度 72/100
-
bug P1
难度 1/5 1 小时以内 新手友好度 68/100
-
feature P3
难度 2/5 1-3 小时 新手友好度 62/100
-
feature P3
难度 2/5 1-3 小时 新手友好度 72/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
anthropics/skills#1811 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
speaches-ai/speaches#678 ·
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
datalayer/mcp-compose#42 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
conda-forge/spacy-feedstock#177 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
UKGovernmentBEIS/inspect_evals#2523 ·