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

Some marker symbols cant be drawn. #4760

Open
abbaselmas opened this issue Sep 11, 2024 · 5 comments
Open

Some marker symbols cant be drawn. #4760

abbaselmas opened this issue Sep 11, 2024 · 5 comments
Labels
bug something broken P3 not needed for current cycle

Comments

@abbaselmas
Copy link

version: 5.24.0
python: 3.12.4

In Styling markers documentation There are 54 marker symbols.
I want to use all of them in my code and loop trough all these 54 (excluding variants -100 -200 -300).
However, some of them, specifically between 33 and 44 cant be drawn. You can see the screenshot.

Just letting you know guys. Thanks for your hard work on plotly!

plotlybug

@gvwilson gvwilson added bug something broken P3 not needed for current cycle labels Sep 11, 2024
@gvwilson
Copy link
Contributor

@archmoj do you think this is a bug in .py or .js? thx

@alexcjohnson
Copy link
Collaborator

These are all the line-only markers, ie you need to set a nonzero line.width to use these… which should happen by default if you don’t explicitly set zero line width? Or perhaps we override this in the default template?

@abbaselmas
Copy link
Author

@archmoj do you think this is a bug in .py or .js? thx

my code is python but i am saving fig with write_html, im not sure if .py or .js.
fig1.write_html(f"./html/synthetic_{name}.html", include_plotlyjs='cdn', full_html=True)

@abbaselmas
Copy link
Author

These are all the line-only markers, ie you need to set a nonzero line.width to use these… which should happen by default if you don’t explicitly set zero line width? Or perhaps we override this in the default template?

I was not chaning line_width but in order to make sure, set it to 5. Result is same. Below is the marker symbol 35 only test.
image

@alexcjohnson
Copy link
Collaborator

Sorry, I meant marker_line_width. There’s also marker_line_color, which most of the time inherits from whatever other color you have set (marker_color or line_color) but if you are also using variable marker_size I think we may set it to white, thinking you’re making a bubble chart. Might be worth us revisiting that logic, but for your purposes probably you can just set it explicitly to match the other color you specified.

See eg https://plotly.com/python/marker-style/#custom-marker-symbols for the intended result, notice in particular there are some markers that will be the same as another unless marker_color and marker_line_color are different, so purely cycling through all the options will always be a bit tricky. circle, circle-cross, and circle-x for example.

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

No branches or pull requests

3 participants