Skip to content

Scattergl symbols + 100 are not empty #1928

Closed
@nvaytet

Description

@nvaytet

When trying to plot empty symbols with Scattergl by adding 100 to a symbol number, the symbols are not empty (while the marker actually appears empty in the legend).

Using Scatter instead of Scattergl works as expected.

Finally, adding "-open" to the symbol name does work with Scattergl.

Code example:

import plotly.graph_objects as go
import numpy as np

N = 10
fig = go.Figure()
fig.add_trace(go.Scattergl(x=np.arange(N),
                           y=np.random.random(N),
                           mode='markers',
                           marker=dict(symbol=101, size=20)))
fig.add_trace(go.Scattergl(x=np.arange(N),
                           y=np.random.random(N),
                           mode='markers',
                           marker=dict(symbol="square-open", size=20)))
fig.add_trace(go.Scatter(x=np.arange(N),
                           y=np.random.random(N),
                           mode='markers',
                           marker=dict(symbol=101, size=20)))

yields

Screenshot at 2019-11-25 22-05-43

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions