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.

scatter3d: suppressing connecting lines causes WebGL warning

See original GitHub issue

I am using plotly.js version 1.12.0. In my browser console, I do:

container = document.querySelector('.plotly-container')
Plotly.newPlot(container, [{x: [1, 2, 3], y: [3, 2, 1], z: [2, 3, 1], type: 'scatter3d'}])

and everything is fine. If I don’t want the lines between the points, I do:

Plotly.newPlot(container, [{x: [1, 2, 3], y: [3, 2, 1], z: [2, 3, 1], type: 'scatter3d', mode:'markers+text'}])

and then, while I no longer see the lines between the points, I get many of this warning:

[.CommandBufferContext.Offscreen-MainThread-0x3969ca4b4a00]RENDER WARNING: Render count or primcount is 0.

I’m using Ubuntu 14.04 and the above warnings only seem to appear in Chrome (for me, Version 51.0.2704.106 (64-bit)). When in Firefox, I do not see the warnings.

Thank you!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
etpinardcommented, Feb 13, 2018

Oh actually, I was able to replicate the same warning message with:

Plotly.newPlot(gd, [{
  type: 'scatter3d',
  mode: 'text',
  x: [1,2,3],
  y: [2,1,2],
  z: [2,1,3]
}])

I’m thinking this has to do with setting mode: 'text' when text is empty.

1reaction
scottwittenburgcommented, Jun 29, 2016

That is correct. The plot renders fine, and the only issue is the console warnings.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adding specific lines to a Plotly Scatter3d() plot - Stack Overflow
Physically speaking, I have a network where I have some nodes connected with bonds, and I want to draw these bonds. How do...
Read more >
plotly.js-mapbox-dist | Yarn - Package Manager
Ready-to-use plotly.js mapbox distributed bundle. Contains trace modules choroplethmapbox , densitymapbox , scatter and scattermapbox . For more info on plotly.
Read more >
Plotly figurewidget overview in Python
A value of 1 (default) gives | a head about 3x as wide as the line. ... clicktoshow | Makes this annotation respond...
Read more >
plotly Changelog - PyUp.io
All line-like Plotly Express functions now accept `markers` argument to display markers, ... Fix no-WebGL warning for `scattergl` and `splom` traces ...
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