Scattergl causes strange lines to be drawn


#1

I’ve noticed there is some strange lines being drawn randomly across the entire plot when the scattergl setting is set, and drawing line graphs. I see this in my own graphs, and even in the example graph for WebGL here under “WebGL with many traces”: https://plot.ly/python/webgl-vs-svg/

The data all appears correctly, but then on the right side of the plot there’s a bunch of random lines drawn across all the data. It looks like the line path may not be closed properly or something? Including screenshot.

Here’s my machine info (pulled from http://webglreport.com/?v=1):
WebGL v2:

Platform: MacIntel
Browser User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
Context Name: webgl2
GL Version: WebGL 2.0 (OpenGL ES 3.0 Chromium)
Shading Language Version: WebGL GLSL ES 3.00 (OpenGL ES GLSL ES 3.0 Chromium)
Vendor: WebKit
Renderer: WebKit WebGL
Unmasked Vendor: NVIDIA Corporation
Unmasked Renderer: NVIDIA GeForce GT 750M OpenGL Engine

WebGL V1:

GL Version: WebGL 1.0 (OpenGL ES 2.0 Chromium)
Shading Language Version: WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium)

#2

Now in -> https://github.com/plotly/plotly.js/issues/3522