Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

slider changes don't trigger axes (x, y, colorbar) adjustments

未关闭
#4,796 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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 内容生成。

描述

bug cs P2 sev-3

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

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

plotly/plotly.py 的其他 Issue

查看 plotly/plotly.py 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。