Skip to content
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

Crash when plotting with labels and WebGL #5067

Open
astrofrog opened this issue Mar 6, 2025 · 1 comment
Open

Crash when plotting with labels and WebGL #5067

astrofrog opened this issue Mar 6, 2025 · 1 comment
Labels
bug something broken P1 needed for current cycle

Comments

@astrofrog
Copy link

astrofrog commented Mar 6, 2025

The following example crashes:

import plotly.express as px
import numpy as np
from pandas import DataFrame

N = 10

df = DataFrame()
df['x'] = np.random.random(N)
df['y'] = np.random.random(N)
df['label'] = ['a'] * N

fig = px.scatter(df, x='x', y='y', text='label', render_mode='webgl')
fig.write_image('test.png')

with the error:

ValueError: Transform failed with error code 525: POt.indexOf is not a function

This also happens by default for more than 1000 points if render_mode is not explicitly specified.

@gvwilson
Copy link
Contributor

gvwilson commented Mar 7, 2025

Thanks @astrofrog - can you please let us know which version of plotly.py you are using?
Thanks,
Greg

@gvwilson gvwilson added bug something broken P1 needed for current cycle labels Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P1 needed for current cycle
Projects
None yet
Development

No branches or pull requests

2 participants