-
Notifications
You must be signed in to change notification settings - Fork 34
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
symbols in legend and plot do not match #388
Comments
The current (pypi) jupyter interface shows the same behavior, but also gives the message "6 symbols are required, but we only have 5. Some symbols will be repeated". Perhaps that's a clue as to where things are going wrong. Note that the screen shot above is from a local web interface of what was, at the time, the latest main branch repo. |
I just updated to the wheel built for the PR mentioned in #393, and it still has the same issue of the legend symbol repeating, but the jupyter |
A hint - when I do 2D map the legend is correct. Is it possible that the legend always uses the equivalent of a 2D map, while the actual map does things somewhat differently depending on whether it's really 2D or 3D? And there's something broken in the mapping between the two? |
When I use a 2D map, it goes through the code in Line 626 in cc688b8
|
Another but of information is that when I have 7 types, both 6 and 7 show up as circles in the legend, which is also the shape that shows up when my attempts at debugging lead to returning something invalid from |
If I change the order of the markers, it refuses to display any other than circle, square, diamond, cross, plus, x. Every other symbol I've tested so far just doesn't work (shows up as a circle) when it's drawing the legend. It must be doing something different about it than the main map. |
I strongly suspect a plotly bug. |
Aha - a workaround. If I make the legend trace have |
Uuuh! It might be that it goes look for symbols in the scattergl list rather than scatter3d! This is very useful, thanks @bernstei |
If the symbol comes from a categorical property and the number of categories reaches 6, the symbols in the legend and plot do not match (see
2H_ABp
in attachment, circle in legend, triangle in PCA plot)The text was updated successfully, but these errors were encountered: