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

Boxplot: allow whiskers to always cover entire range #1455

Closed
stefanv opened this issue Nov 7, 2012 · 8 comments
Closed

Boxplot: allow whiskers to always cover entire range #1455

stefanv opened this issue Nov 7, 2012 · 8 comments
Milestone

Comments

@stefanv
Copy link
Contributor

stefanv commented Nov 7, 2012

Sometimes, one needs to have the whiskers of a boxplot cover the entire data range. This is typically achieved by setting whis to a large enough value. However, if the 25-75 percentiles are identical, then the value of whis has no influence, and no whiskers are drawn.

@tacaswell
Copy link
Member

@phobson another old boxplot issue that you might want to look at.

@phobson
Copy link
Member

phobson commented Nov 27, 2013

@tacaswell Thanks. Will do.

@phobson
Copy link
Member

phobson commented Dec 3, 2013

@stefanv it just occured to me that you can already accomplish this by setting the whis kwarg to something sufficiently high -- 1e6 should be safe for most real-life datasets ;)

@stefanv
Copy link
Contributor Author

stefanv commented Dec 3, 2013

@phobson Like the bug description states: the value of whis is ignored under certain circumstances.

@phobson
Copy link
Member

phobson commented Dec 3, 2013

Well I certainly missed that part. Apologies.

But if Q1 == Q3, then Q2 (median) == Q1 == Q3 and I'm not sure how much boxplots are going to tell you.

That said, I can add some logic in #2643 that if Q1 == Q3, the whisker limits can fall back to 5th/95th percentiles or min/max.

@stefanv
Copy link
Contributor Author

stefanv commented Dec 3, 2013

I think as long as the whiskers do not disappear I'd be quite happy! Thanks for having a look at this @phobson

@tacaswell
Copy link
Member

@phobson Did this get taken care of by #2643?

@phobson
Copy link
Member

phobson commented Feb 27, 2014

Yes. With the whis kwarg, you can now pass 'range' or a list of
percentiles.

On Wed, Feb 26, 2014 at 7:39 PM, Thomas A Caswell
notifications@github.comwrote:

@phobson https://github.com/phobson Did this get taken care of by #2643#2643
?

Reply to this email directly or view it on GitHubhttps://github.com//issues/1455#issuecomment-36207153
.

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

No branches or pull requests

3 participants