plotly / plotly/plotly.py

Problems with "Reds", "Turbo", "Inferno" (...?) colorscales

オープン
#3,860 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

bug P3
主要言語
Python
スター
18.8k
フォーク
2.8k
平均マージ
16時間 26分
マージ済み PR(30日)
21

説明

There seems to be an issue with the "Reds" and "Turbo" colorscales. I couldn't find an existing issue about this, so here is how to reproduce: I just got this example from plotly page:
https://plotly.com/python/dropdowns/#update-several-data-attributes
And added the "Reds" and "Turbo" colorscales.

The "Reds" seem to work, but it is inverted when comparing to the "Blues" and "Greens":
Screenshot 2022-08-20 at 16 25 34Screenshot 2022-08-20 at 16 31 13Screenshot 2022-08-20 at 16 25 45

The "Turbo", on the other hand, shows up like a "coolwarm" colorscale instead:
Screenshot 2022-08-20 at 16 25 58

These two are different than the ones described on the documentation here: https://plotly.com/python/builtin-colorscales/#builtin-sequential-color-scales

I had similar issues when using "Plotly.update" with plotly.js to update the coloscales.

edit: Also the "Inferno" shows as the "coolwarm" one:
Screenshot 2022-08-20 at 17 09 21
Probably there are others too.

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

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

はじめの一歩

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

調査の方向性

リンクされたPlotly Pythonのdropdown例と、報告されているPlotly.updateの再現から始め、次にReds、Turbo、Infernoの結果を組み込みの連続カラースケールのドキュメントと比較します。これらのカラースケールがどこで選択または変換されるかを追跡します。両方の報告された更新パスで、ドキュメントに記載されたパレットでレンダリングされれば完了です。

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

評価

技術スタック
javascript, python
領域
data-visualization
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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