plotly / plotly/plotly.py

enable fill between two lines in y direction only within intersection part

オープン
#4,311 コメント 11 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

feature P3
主要言語
Python
スター
18.8k
フォーク
2.8k
平均マージ
16時間 26分
マージ済み PR(30日)
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:
newplot (1)

How to fill between two lines in y direction only within intersection part, like this? And how can fill them with different colors?
newplot

In summary, two questions:

  1. How to fill between two lines in y direction only within intersection part?
  2. And how can fill them with different colors?

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、2つの go.Scatter trace を使った提供済みの Python 例を再現し、要求された交差部分のみのプロットと比較します。既存の Scatter の塗りつぶし動作を調査し、2つの要件—塗りつぶしの制限と異なる色—をどのようにサポートすべきかを判断します。完了条件は、要求された両方の結果が実証されるか、明確に仕様化されていることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
data-visualization
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。