Skip to content

px.scatter scattermode="group" broken with render_mode="webgl" #4388

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
slmg opened this issue Oct 19, 2023 · 2 comments
Closed

px.scatter scattermode="group" broken with render_mode="webgl" #4388

slmg opened this issue Oct 19, 2023 · 2 comments

Comments

@slmg
Copy link

slmg commented Oct 19, 2023

Plotly version: 5.17.0

From the official doc, the below works fine.

df = px.data.medals_long()

fig = px.scatter(
    df, y="count", x="nation", color="medal", render_mode="svg"
).update_layout(scattermode="group", scattergap=0.75)

fig

But switching to render_mode="webgl" is broken, as all point get overlaid.

df = px.data.medals_long()

fig = px.scatter(
    df, y="count", x="nation", color="medal", render_mode="webgl"
).update_layout(scattermode="group", scattergap=0.75)

fig
@qchenevier
Copy link

It seems to be fixed with the release of v5.19.0: https://github.com/plotly/plotly.py/releases/tag/v5.19.0

@Coding-with-Adam
Copy link
Contributor

Works indeed. Thanks @qchenevier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants