Skip to content

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

Description

@nZo-sp

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions