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

Scattergl symbols + 100 are not empty #1928

Closed
nvaytet opened this issue Nov 25, 2019 · 2 comments
Closed

Scattergl symbols + 100 are not empty #1928

nvaytet opened this issue Nov 25, 2019 · 2 comments
Milestone

Comments

@nvaytet
Copy link
Contributor

nvaytet commented Nov 25, 2019

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

@nicolaskruchten
Copy link
Contributor

Thanks for the bug report! We'll fix this in plotly/plotly.js#2507 and the fix should come out in version 4.4

@nicolaskruchten nicolaskruchten added this to the v4.4.0 milestone Nov 26, 2019
@jonmmease jonmmease modified the milestones: v4.4.0, v4.5.0 Dec 10, 2019
@nicolaskruchten
Copy link
Contributor

This works in master and will definitely be released in 4.5.0 :)

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

No branches or pull requests

3 participants