question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

scattergl lines sometimes draws random lines on some hardware

See original GitHub issue

I’ve posted this in the forum: https://community.plot.ly/t/scattergl-causes-strange-lines-to-be-drawn/19189

After investigating a bit further, I’m filing a bug/issue here.

The issue is that when the type is set to scattergl, sometime the plot will draw random lines extending across the plot. It doesn’t seem to happen every time, but I can see it consistently on the example with many points: https://plot.ly/python/webgl-vs-svg/

It seems to be dependent on the size of the chart, if I resize my browser window and refresh that example, sometimes the lines appear, sometimes they don’t, but it’s consistent for that size of my browser window.

I’ve added a codepen to randomly draw lines, and if I run it a few times, then I run into the issue: https://codepen.io/anon/pen/qgpbKq

For example, one time after running there was as red/blue line across the entire graph: image

I would provide the exact data set, but as mentioned at the top, it seems to be dependent on the size of the window/plot being drawn (and possibly other factors?), but you should see the error if you run the code pen a few times.

Any idea what could be causing this? scattergl is great for the performance improvements, but looks broken when it’s drawing random lines across the whole plot.

Issue observed in both Chrome/FireFox, some more details:

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

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:30 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
jackparmercommented, Sep 10, 2020

This issue has been tagged with NEEDS SPON$OR

A community PR for this feature would certainly be welcome, but our experience is deeper features like this are difficult to complete without the Plotly maintainers leading the effort.

Sponsorship range: $5k-$10k

What Sponsorship includes:

  • Completion of this feature to the Sponsor’s satisfaction, in a manner coherent with the rest of the Plotly.js library and API
  • Tests for this feature
  • Long-term support (continued support of this feature in the latest version of Plotly.js)
  • Documentation at plotly.com/javascript
  • Possibility of integrating this feature with Plotly Graphing Libraries (Python, R, F#, Julia, MATLAB, etc)
  • Possibility of integrating this feature with Dash
  • Feature announcement on community.plotly.com with shout out to Sponsor (or can remain anonymous)
  • Gratification of advancing the world’s most downloaded, interactive scientific graphing libraries (>50M downloads across supported languages)

Please include the link to this issue when contacting us to discuss.

1reaction
JamesXNelsoncommented, Feb 24, 2019

I had tried to reproduce on ubuntu and was not able to.

I even tried to get the graphical / hardware settings on a mac that could 100% reproduce to match the ubuntu machine that couldn’t, and it changed nothing. Mac rendered the messed up graph 100%, ubuntu, 0%.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Scattergl causes strange lines to be drawn - plotly.js
I've noticed there is some strange lines being drawn randomly across the entire plot when the scattergl setting is set, and drawing line...
Read more >
Random horizontal lines when annotating PowerPoint ...
When annotating a PowerPoint 2016 slide show using a digital pen and graphics tablet, short horizontal lines randomly appear whilst drawing.
Read more >
How to Fix Horizontal Lines on a Computer Screen - Lifewire
Here are all of the best solutions for getting rid of horizontal lines on your computer screen or monitor. Turn your monitor off...
Read more >
Random Horizontal Apple Pencil Streaks and Breaks
The issue: While resting my palm on the screen and writing with the pencil,. 1) Breaks appear where the lines are supposed to...
Read more >
Plot accelerometer data python. 38462495803833,8. 22Hz ...
The random dataframe data simulates the reading of the actual source, ... The Pandas line plot represents information as a series of data...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found