-
Notifications
You must be signed in to change notification settings - Fork 228
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
'show_titles' should reflect the specified quantiles (?) #107
Comments
This is definitely a bug either with the docs or the code, but I think that it might be better to just fix the docstring to reflect the current behavior. Alternatively, there could be an error thrown if the user doesn't provide exactly 3 quantiles. |
Thanks Dan. I guess it is useful to be able to plot more than three quantile lines if desired, so perhaps updating the docstring is the best way to go, as you suggest. Intervals for the specified quantiles can still be obtained by passing |
Is this the same issue as #94? |
Any news? |
@alessandropeca, I am still slowly working on #108, but it is not done yet. That is not exactly the same as this issue, but they are related. I can share the WIP code I have if you (or anyone) wishes. |
I've just come across this issue. This seems important to fix since it'd be quite easy to quote incorrect 90% confidence intervals, for example, particularly for quite steep posterior distributions. Unless #108 is nearly done @benjaminrose , I'd suggest a simpler fix where one additional kwarg is used (say, The old behaviour could be recovered by always passing |
The slight problem with the simple fix above is that quantiles can be any length, and title_quantiles must be lenth-3, so this must be checked. It also needs to deal with the scenario that ``len(quantiles) == 0 |
@jhmatthews #108 was half implemented, but then fell behind the main repo. The work I have might be a pain to merge. I would fix what needs to be fixed and not worry about the half working code I wrote. |
I've proposed a fairly simple fix for this under PR #193. |
checks with a corner plot obtained by brute-force sampling. The Python package `corner` has a bug, which causes the percentiles in the figure titles to default to hard-coded values. The issue is known dfm/corner.py#107.
Not sure whether this is a very minor issue or just me misunderstanding the intended behaviour...
If I specify
quantiles
in my call tocorner.corner()
, I get vertical lines on the histograms at my specified quantiles, but the plot titles always assumequantiles=[0.16, 0.5, 0.84]
(see here).Shouldn't
show_titles
use the specified quantiles? Perhaps something like this for lines 277 to 282:Thanks for an awesome package!
The text was updated successfully, but these errors were encountered: