plotly / plotly/plotly.py

subplot layouts break with go.Scatter and go.Scattergl

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

还没有人认领这个 Issue。

bug P3
主要语言
Python
星标
18.8k
派生
2.8k
平均合并
16 小时 26 分钟
30 天内合并 PR
21

描述

When I plot many subplots, the axes occasionally break. I am using fixed subplot sizes. Occasionally line plots will not plot on their respective subplot axes. You can see the interactive hover actions do work on the axes, but the lines themselves are drawn shifted much higher or lower than the axis. All the go.Heatmap objects seem to graph just fine.

Sometimes I can fix the layout bug by choosing a different axis height, but most values don't fix it so it's a long game of guess-and-check.

audio_diff.html.zip

Screenshot 2023-10-05 at 1 42 38 PM
Screenshot 2023-10-05 at 1 42 46 PM

Google chrome seems to report some errors

Specifying overflow: visible on img, video and canvas tags may cause them to produce visual content outside of the element bounds. See https://github.com/WICG/shared-element-transitions/blob/main/debugging_overflow_on_images.md .
1 source

audio_diff.html:12

One or more documents in this page is in Quirks Mode, which will render the affected document(s) with quirks incompatible with the current HTML and CSS specifications.
Quirks Mode exists mostly due to historical reasons. If this is not intentional, you can add or modify the DOCTYPE to be <!DOCTYPE html> to render the page in No Quirks Mode.

贡献指南

打开贡献指南

从这里开始

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

调研方向

首先在 Chrome 中打开随附的 audio_diff.html.zip,并使用 go.Scatter 和 go.Scattergl 配合 go.Heatmap 复现固定大小的子图布局。将偏移的线轨迹与其坐标轴以及浏览器警告进行比较;在所有测试高度下,线图都与各自的子图坐标轴保持对齐即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
data-visualization
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

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