update_yaxes behavior for make_subplots vs specifying axes directly
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 18.8k
- 派生
- 2.8k
- 平均合并
- 16 小时 26 分钟
- 30 天内合并 PR
- 21
描述
--copied from the plotly forum here https://community.plotly.com/t/update-yaxes-behavior-when-using-make-subplots-vs-specifying-axes-directly/92496--
To my knowledge, there’s two main ways to create subplots:
make_subplots(), then add trace data - example here
create list of data, inject into go.Figure() - example here (see hover on subplots)
I’m not sure which one’s the preferred one, but update_yaxes affects them differently.
If we use method 1, the update_yaxes affects all yaxes as intended
If we use method 2, the update_yaxes only affects the first subplot
Is there a reason why update_yaxes doesn’t play well with the second way of creating subplots?
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 issue 中链接的两个示例开始,使用 make_subplots() 和手动组装的 go.Figure() 重现 update_yaxes 的不同表现。跟踪每种情况下如何引用子图坐标轴。差异得到解决,或其预期行为通过回归示例得到清晰记录,即可视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100