When making a Scatter plot using Scattergl
and error bars, the error bars disappear the first time one zooms onto the plot if the scatter mode
is "markers"
.
Example code:
import plotly.graph_objects as go
import numpy as np
N = 10
fig = go.Figure()
fig.add_trace(go.Scattergl(x=np.arange(N),
y=np.random.random(N),
error_y=dict(array=np.random.random(N)),
mode='markers'))
I am getting the following error in the broswer console:
[.WebGL-0xe76392e7300]GL ERROR :GL_INVALID_OPERATION : glDrawArraysInstancedANGLE: attempt to draw with all attributes having non-zero divisors
If the mode is "lines"
, then the plot behaves as expected:
import plotly.graph_objects as go
import numpy as np
N = 10
fig = go.Figure()
fig.add_trace(go.Scattergl(x=np.arange(N),
y=np.random.random(N),
error_y=dict(array=np.random.random(N)),
mode='lines'))
If I use Scatter
instead of Scattergl
, the plot also behaves correctly, for both "markers"
and "lines"
modes.
Thanks for any help!