Allow setting zmid with zmin and zmax in plotly.graph_objects.Heatmap
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 18.8k
- フォーク
- 2.8k
- 平均マージ
- 16時間 26分
- マージ済み PR(30日)
- 21
説明
Feature request
I've been trying to plot a subset of a ranked list (gene differential expression dataset). I would like the minimum and maximum color scale set to that of the original complete ranked list, with the midpoint set to zero. It currently seems to be impossible in plotly to do this. I can plot the subset with the colorscale min and max set to the original dataset min and max, but this causes the midpoint to no longer be set to zero.
It can be desirable to set a colorscale to the minimum and maximum of a positive/negative spanned dateset with unequal absolutes but to still have the midpoint at zero without needing to construct and entirely custom colorscale. zmid being ignored when zmax and zmin are set just seems a super odd behavior to me.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
plotly.graph_objects.Heatmap から開始し、colorscale に対して zmin、zmax、zmid がどのように処理されているかを追跡します。関連する動作について、既存の Heatmap テストを確認します。zmin と zmax が明示的に設定されている場合でも zmid が有効なままになり、正と負の境界値が不均等なケースをカバーできれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- data-visualization
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100