-
-
Notifications
You must be signed in to change notification settings - Fork 414
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
2kde use hdi_probs by default #2383
Conversation
I agree with changing the behaviour with I remembered |
What you suggest will fix the issue when passing In other words, this is not something exclusive of |
The thing is this new "extra" contour is matplotlib new default behaviour. It might be a bit surprising at first because it has been added recently, but I think this is a temporal effect which will soon be reversed. People will have done/seen contourplots with matplotlib which show this outer contour delimiting where there is data but using the same parameters they won't get it if using ArviZ, in fact, depending on what we do it might even be impossible to get this behaviour at all if using ArviZ. With I have gone quite a bit off-topic, but I think it mostly boils down to "do we actively dislike this outer contour and want to diverge from matplotlib behaviour?" |
I see your point, but my visceral dislike for this outer contour is greater, haha. What if we default to some values of hdi_probs other than None like [0.5, 0.8, 0.94]? |
Sounds good |
55db17d
to
c78fd0c
Compare
0c38f94
to
5fba0bd
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2383 +/- ##
==========================================
- Coverage 87.00% 86.95% -0.05%
==========================================
Files 124 124
Lines 12877 12882 +5
==========================================
- Hits 11203 11202 -1
- Misses 1674 1680 +6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@OriolAbril I think this is ready to merge. |
Closes #2382
An "extra" contour is plotted by default, when passing hdi_probs or when passing an integer to
levels
. This little change "fix" the issue. Not entirely happy with the solution📚 Documentation preview 📚: https://arviz--2383.org.readthedocs.build/en/2383/