Normalized Histogram with Marginal producing the wrong plot
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
Using plotly.express (px) to plot a Histogram with barnorm = 'percent' and marginal = 'histogram' produces a plot where the barnorm is ignored and the raw counts are plotted. I think the output should be a histogram with barnorm = 'percent' and a marginal histogram with the regular counts.
px.histogram(pd.DataFrame({'x': np.random.normal(0, 1, 100),
'col': np.random.choice(['A', 'B'], 100)}),
x='x', color='col', barnorm='percent', marginal='histogram')
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 damit, das bereitgestellte plotly.express-Histogrammbeispiel auszuführen, und vergleiche das Haupthistogramm mit seinem marginalen Histogramm. Verfolge den Pfad von plotly.express für Histogramme, um zu bestimmen, wo barnorm angewendet wird, und überprüfe anschließend, dass der Hauptplot die Prozentnormalisierung verwendet, während das marginale Histogramm die Rohzählungen beibehält.
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
- Veraltet
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 42/100