[BUG]: Plotly (Dash) not updating xaxes range via Patch method when subplots are horizontal
未关闭
@emilykl 已经在做这个了。
开始于 2026年2月4日。
bug
- 主要语言
- Python
- 星标
- 18.8k
- 派生
- 2.8k
- 平均合并
- 16 小时 26 分钟
- 30 天内合并 PR
- 21
描述
Description
Plotly (Dash) not updating xaxes range via Patch method when 2 subplots are horizontal make_subplots(rows=1, cols=2, shared_xaxes="all"). It works fine when the two subplots are vertical.
Plotly / Dash versions
plotly 6.5.2
dash 3.4.0
Screenshots/Video
Horizontal: On 1st Forward or Backward click half the trend disappears, because the range does not get updated.
Horizontal: On 2nd Forward or Backward click half the trend disappears, because the range does not get updated.
Vertical Subplots are OK! You can hit Forward/Backward as many times as you want
Steps to reproduce
- Run attached code
- When Dropdown is Horizontal (default), use Forward/Backward button and trend will disappear in two clicks. The x-range does not keep up when the trend is updated via the Patch method
patched_figure["layout"][f"xaxis{index + 1}"]["range"] = [now, now + timedelta(days=4)] - When Dropdown is Vertical, all works as is should. You can hit Forward/Backward as many times as you want.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
评估
这个 Issue 还没有评估数据。