Error in plotly express scatter with continuous_color_scale and marginal_x
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
Hello
i am logging this as i think this might be a bug. I found while building a Dash app but the same issue arises in a a jupyter notebook.
import plotly.express as px
df = px.data.iris()
below, it works as expected:
fig = px.scatter(df, x="sepal_width", y="sepal_length", color="sepal_length",color_continuous_scale='Viridis')
fig
so is the following
fig = px.scatter(df, x="sepal_width", y="sepal_length", color="sepal_length",marginal_x='box')
fig
But the following expression breaks down
fig = px.scatter(df, x="sepal_width", y="sepal_length", color="sepal_length",marginal_x='box',color_continuous_scale='Viridis')
fig

it looks like box marker is using 'V' of Viridis in the color_continuous_scale.
Thanks
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
Beginnen Sie damit, die bereitgestellten Python-Beispiele in einem Jupyter-Notebook auszuführen, und vergleichen Sie die funktionierenden Fälle mit der Kombination aus marginal_x='box' und color_continuous_scale='Viridis'. Verfolgen Sie, wie diese Kombination die Scatter- und marginalen Box-Traces erstellt; fertig ist die Aufgabe, wenn das Diagramm ohne den Box-Marker mit einer falschen Farbe aus der kontinuierlichen Skala gerendert wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- jupyter-notebook, python
- Bereich
- data-visualization
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100