Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draw error in scattergl for plot with markers and lines traces #2846

Closed
nZo-sp opened this issue Jul 26, 2018 · 2 comments
Closed

Draw error in scattergl for plot with markers and lines traces #2846

nZo-sp opened this issue Jul 26, 2018 · 2 comments
Labels
bug something broken

Comments

@nZo-sp
Copy link

nZo-sp commented Jul 26, 2018

https://codepen.io/anon/pen/WKEdQb?editors=1010

In this pen, as you can see the last trace is not visible.
If you press the autoscale the last trace appears.

This happens only if you plot trace in the following order:
[Marker Trace 1, Marker Trace 2, ..., Marker Trace N, Line Trace]

Maybe it is not a plotly bug, it could be something related to regl-line2d, or the way plotly uses it.
If this can be usefull, in regl-line2d, there are a step where undefined passes are filtered out.

// remove null items
this.passes = this.passes.filter(Boolean)

This leads to a misalignment of ids between plotly and regl-line2d.

@alexcjohnson alexcjohnson added the bug something broken label Jul 26, 2018
@alexcjohnson
Copy link
Collaborator

@VinceX confirmed, thanks for the example and partial debugging. I'll let @dy figure out where the fix goes, but regardless it counts as a bug in plotly.js!

@alexcjohnson
Copy link
Collaborator

Oh sorry - this is a duplicate of #2765 - and the example there behaves the same way, the last line shows up on a redraw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

No branches or pull requests

2 participants