`plotly.graph_objects.Scatter` property `fillgradient` does not plot gradients with v5.22.0 in python
オープン
まだ誰も着手していません。
bug
P3
- 主要言語
- Python
- スター
- 18.8k
- フォーク
- 2.8k
- 平均マージ
- 16時間 26分
- マージ済み PR(30日)
- 21
説明
Description
I am trying to use the fillgradient in a scatter plot with plotly.
I copied the documentation code for its use, but on code execution, the gradient does not appear.
Operating system & Environment
- OS: macOS Sonoma
14.5 - language: python
3.11.3 - relevant libraries (working on VSCode in a jupyter notebook)
- plotly
5.22.0 - jupyterlab
3.6.3 - ipywidgets
8.0.4 - notebook
6.5.4
- plotly
Code used
import plotly.graph_objects as go
fig = go.Figure(
[
go.Scatter(
x=[1, 2, 3, 4],
y=[3, 4, 8, 3],
fill=None,
mode="lines",
line_color="darkblue",
),
go.Scatter(
x=[1, 2, 3, 4],
y=[1, 6, 2, 6],
fill="tonexty",
mode="lines",
line_color="darkblue",
fillgradient=dict(
type="horizontal",
colorscale=[(0.0, "darkblue"), (0.5, "royalblue"), (1.0, "cyan")],
),
),
]
)
fig.show()
Output in picture:
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
提示された Python 例の問題を、記載された Plotly 5.22.0 環境を使用して Jupyter ノートブックで再現し、fig.show() と Scatter fillgradient の設定から開始します。レンダリングされた出力を、ドキュメントにあるグラデーション塗りつぶしの例と比較します。設定したグラデーションが散布図の塗りつぶしに表示されれば、問題は完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- jupyter-notebook, python
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100