enable fill between two lines in y direction only within intersection part
未关闭
还没有人认领这个 Issue。
feature
P3
- 主要语言
- Python
- 星标
- 18.8k
- 派生
- 2.8k
- 平均合并
- 16 小时 26 分钟
- 30 天内合并 PR
- 21
描述
This code snippet will plot two lines:
import plotly.graph_objs as go
anchor_rate = [1000, 1660.89, 3220.62, 5927.36]
anchor_psnr = [31.799098, 34.155477, 36.053423, 36.5]
tested_rate = [752.33,1608.90,3114.10,5685.72]
tested_psnr = [31.336015,33.752160,35.730303,37.200365]
fig = go.Figure()
fig.add_trace(go.Scatter(
x=anchor_rate,
y=anchor_psnr,
))
fig.add_trace(go.Scatter(
x=tested_rate,
y=tested_psnr,
))
fig.show()
This is the plot:
How to fill between two lines in y direction only within intersection part, like this? And how can fill them with different colors?
In summary, two questions:
- How to fill between two lines in y direction only within intersection part?
- And how can fill them with different colors?
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,使用两个 go.Scatter trace 重现所提供的 Python 示例,并将其与所请求的仅显示交集的绘图进行比较。调查现有的 Scatter 填充行为,并确定应如何支持这两个问题——限制填充范围和使用不同颜色;当所请求的两种结果都得到演示或明确说明时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- data-visualization
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100