I’m plotting scientific data, around 500 points + errors per trace (between 1 and 4 traces normally). Doesn’t sound too much, does it? Now the data changes according to user input - a slider, and my goal is to update the plots as smoothly as possible while dragging the slider. And that’s where I realized that im not satisfied with the drawing speed.
Since the y data (+errors) can totally change, I use
Plotly.redraw - this takes in my case on Chrome about 30-40ms. Seems ok, but considering that I want to present 5-15 plots at the same time, this often adds up to half a second or more. 1 or 2 fps ain’t exactly what one would call “smooth”. Plus, that’s on Chrome, it looks way worse on other Browsers.
So I wonder if redrawing is the only option, and if so, how to speed this up? Any ideas? I tried
type: 'scattergl'and while this seems to be a big boost (down to 10-15ms), it only works like a charm for small plots with only one trace, I can’t manage to get it to work for all 10-15 plots - it throws multiple different errors, not worth mentioning since they are always different on different machines. So my conclusion is, that the
scattergl interface isn’t as mature as svg, but maybe I’m using it wrong?
Sorry for the long text, but now I would be really glad to hear some ideas on how to speed things up.