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

Proposed fix for title errorbars/quantiles bug #193

Merged
merged 4 commits into from
Feb 22, 2022

Conversation

jhmatthews
Copy link
Contributor

This is a proposed fix for issues #94 #107 - which is a potentially fairly serious bug, where, if you supply the quantiles via the quantiles kwarg, the title_quantiles do not match those drawn. Instead, they are hardwired to 68% values.

This proposed fix introduces a new kwarg title_quantiles. This is a list of 3 fractional quantiles to show as the the upper and lower errors. If None (default), it inherits the values from quantiles, unless quantiles is None, in which case it defaults to [0.16,0.5,0.84].

The test of this is currently minimal - it simply checks the default behaviour (I'm not that familiar with using @image_comparison or corner, so happy to change this). The docstring is updated but it's possible other docs are needed.

Would be grateful if someone could look this over and check the proposal looks reasonable.

@jhmatthews jhmatthews changed the title Proposed fix for title errorbars/quantiles Proposed fix for title errorbars/quantiles bug Feb 21, 2022
@dfm
Copy link
Owner

dfm commented Feb 22, 2022

Thanks @jhmatthews!

I made some minor tweaks to the error handling and updated the tests, but I think it looks good to go now. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'show_titles' should reflect the specified quantiles (?) Errors in titles unaffected by quantiles argument
2 participants