heatmaps hide data if any X- or Y-axis label is repeated (px.imshow and go.Heatmap)
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 18.8k
- Forks
- 2.8k
- Ø Merge
- 16 Std. 26 Min.
- Gemergte PRs (30 T.)
- 21
Beschreibung
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.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Starte, indem du das bereitgestellte px.imshow-Beispiel ausführst, Friday oder Evening in ein wiederholtes Label änderst und die fehlende Zeile oder Spalte reproduzierst. Vergleiche das Verhalten mit go.Heatmap unter Verwendung derselben Daten; die Aufgabe ist erledigt, wenn wiederholte Labels Daten nicht mehr stillschweigend ausblenden oder ein eindeutiger Fehler meldet, dass sie nicht unterstützt werden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- data-visualization
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 58/100