You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Redraw errors after Plotly.update in a scattergl with subplots #2791
In this pen after an amount of time a plotly.update is executed and the visibility for trace 2 is set to false.
The update is executed without clear the gl context.
This issue seems realted to a check inside plot_api.js at line 212:
the data for each gl-canvas is recreated in any case even if there is already a data with a regl reference.
This leads to the clearGlCanvases that does nothing if regl is not defined.
Activity
etpinard commentedon Jul 9, 2018
A reference must get lost when calling
Plotly.updatewith the same layout object as the firstnewPlot.Calling
Plotly.update('myDiv', {visible: [false]}, {}, [0])works just fine: https://codepen.io/etpinard/pen/QBLVBz?editors=1010 or itsreactvariantas in https://codepen.io/etpinard/pen/GBKXYQ?editors=1010 works fine too.
Thanks for the report.
fix #2791 - do not clear _glcanvas ref during layout replot edits