-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Violin kde all 0 in marginal subplot #3653
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
Comments
Might have been fixed during @antoinerg 's #3626 @antoinerg wanna check? |
Thank you @nicolaskruchten for reporting this issue. The following figure https://plot.ly/~nicolaskruchten/290 is indeed not rendering properly. |
I forgot to mention this: the above Codepen uses a recent plotly.js build that includes #3626. Therefore the issue is still present and will require a new fix! |
Although the violins are rendered differently in the two figures produced by @nicolaskruchten, the |
The problem reported occurs because both violins have the same trace name (which is a whitespace see JSON). Because of this, by default, they end up in the same Question: is the default behavior of grouping traces in the same Unfortunately for @nicolaskruchten, he's not out of the woods just yet: there is also the issue of hover labels being empty for the top violin 😞 Codepen with violins having different names: |
I don't think we should do any kind of automatic grouping based on the trace name, as a gut reaction. Seems far too brittle. |
Hmm, I'd call that "removing automatic grouping" request plotly.js/src/traces/violin/defaults.js Line 33 in 7b2946a
a breaking change. |
I do understand your concern @nicolaskruchten: automagically doing things can be both a blessing and a curse. However, one may argue that traces representing different quantities should be named differently and they won't get grouped automatically. Also, note that if no names is specified, they won't be grouped. |
Instead of having a The reason for having one whitespace for |
Indeed, it would break the following mock |
@etpinard The top violin does not show hover labels displaying the statistics. Why is that? Because the axis range is too narrow? Is this a bug? |
This is #2970 - I'd recommend setting |
I updated the Codepen to use I will let @nicolaskruchten close this issue if he thinks this is satisfactory. |
OK, well, I wouldn't say I consider this outcome "satisfactory" as this is quite magical and totally undocumented behaviour, so let's leave this open until the
|
@nicolaskruchten I completely missed the fact that the doc is lacking. We should probably document the auto-grouping behavior in both Thanks for pointing that out 👍 |
@nicolaskruchten thanks again for pointing that out: we updated the documentation in PR #3687 |
Excellent, thanks for the great follow-through :) 🎉 |
Compare the following plots, which differ only in that one has a second violin on the right: https://plot.ly/~nicolaskruchten/290 and https://plot.ly/~nicolaskruchten/292
Why is it that when there is a second marginal violin on the right, the top one has KDE=0 everywhere?
The text was updated successfully, but these errors were encountered: