Skip to content

scatter3d: suppressing connecting lines causes WebGL warning #704

Closed
@scottwittenburg

Description

@scottwittenburg

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!

Activity

etpinard

etpinard commented on Jun 29, 2016

@etpinard
Contributor

Thanks for report. I can confirm this issue on Chrome 51 and Ubuntu 16.04.

The plot still renders fine to my eyes. @scottwittenburg can you confirm?

scottwittenburg

scottwittenburg commented on Jun 29, 2016

@scottwittenburg
Author

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

etpinard

etpinard commented on Nov 28, 2016

@etpinard
Contributor
etpinard

etpinard commented on Feb 13, 2018

@etpinard
Contributor

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.

self-assigned this
on Oct 21, 2018
etpinard

etpinard commented on Oct 29, 2018

@etpinard
Contributor

Fixed in #3171

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugsomething broken

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @scottwittenburg@etpinard@archmoj

      Issue actions

        scatter3d: suppressing connecting lines causes WebGL warning · Issue #704 · plotly/plotly.js