plotly / plotly/plotly.py

heatmaps hide data if any X- or Y-axis label is repeated (px.imshow and go.Heatmap)

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

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

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

説明

This example is from Customizing the axes and labels on a heatmap:

import plotly.express as px
data=[[1, 25, 30, 50, 1], [20, 1, 60, 80, 30], [30, 60, 1, 5, 20]]
fig = px.imshow(data,
                labels=dict(x="Day of Week", y="Time of Day", color="Productivity"),
                x=['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'],
                y=['Morning', 'Afternoon', 'Evening'])
fig.show()

If you change "Friday" to "Monday", or "Evening" to "Morning", the row or column with the repeated label disappears. The same thing happens with go.Heatmap on the same page.

I don't think I read anywhere that labels must be unique, and all the examples suggest that the labels are arbitrary strings. If they must be unique, reporting an error seems more rational than hiding data.

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

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

はじめの一歩

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

調査の方向性

まず、提供されている px.imshow の例を実行し、Friday または Evening を繰り返しラベルに変更して、欠落する行または列を再現します。同じデータを使って go.Heatmap と動作を比較します。繰り返しラベルによってデータが黙って隠されなくなるか、サポートされていないことを明確なエラーで報告すれば完了です。

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

評価

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

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

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