Allow setting zmid with zmin and zmax in plotly.graph_objects.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
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.
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
Beginne bei plotly.graph_objects.Heatmap und verfolge, wie zmin, zmax und zmid für die Farbskala behandelt werden. Prüfe bestehende Heatmap-Tests auf verwandtes Verhalten. Als erledigt gilt, dass zmid wirksam bleibt, wenn zmin und zmax explizit gesetzt sind, mit Testabdeckung für ungleiche positive und negative Grenzen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- data-visualization
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100