-
-
Notifications
You must be signed in to change notification settings - Fork 411
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
use constant gap for rank plots #2180
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2180 +/- ##
=======================================
Coverage 89.95% 89.96%
=======================================
Files 119 119
Lines 12398 12401 +3
=======================================
+ Hits 11153 11156 +3
Misses 1245 1245
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good, thanks!
Left a comment on the default handling line
Co-authored-by: Oriol Abril-Pla <oriol.abril.pla@gmail.com>
CHANGELOG.md
Outdated
@@ -23,6 +23,8 @@ | |||
|
|||
### Maintenance and fixes | |||
- Fix dimension ordering for `plot_trace` with divergences ([2151](https://github.com/arviz-devs/arviz/pull/2151)) | |||
- Fix gap for `plot_trace` with option `kind="rank_bars"` ([2180](https://github.com/arviz-devs/arviz/pull/2180)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this ended up in the 0.14 section instead of the unreleased, other than that it is good to merge
Description
Fix #2177. That issue is a good example of where we will benefit from decoupling computation from plotting. Currently, we compute the ranks, use the values to set the space between chains and plot that. And repeat for the next dimension of the variable.
In the meantime, this PR takes a simpler approach and set a constant gap, of two times the expected height of the uniform distribution. When the rank plot is fine this gap should be enough to make the plots looks nice. Although it will allow overlaps between bars from different chains when the rank deviates more than 2 times the expected uniform distribution. I think that's fine, because if you have such overlap then, you have bigger issues than aesthetics :-)
Checklist
📚 Documentation preview 📚: https://arviz--2180.org.readthedocs.build/en/2180/