You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Boxplot: allow whiskers to always cover entire range #1455
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.
@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 ;)
Activity
tacaswell commentedon Nov 27, 2013
@phobson another old boxplot issue that you might want to look at.
phobson commentedon Nov 27, 2013
@tacaswell Thanks. Will do.
phobson commentedon Dec 3, 2013
@stefanv it just occured to me that you can already accomplish this by setting the
whiskwarg to something sufficiently high -- 1e6 should be safe for most real-life datasets ;)stefanv commentedon Dec 3, 2013
@phobson Like the bug description states: the value of
whisis ignored under certain circumstances.phobson commentedon 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 commentedon 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 commentedon Feb 27, 2014
@phobson Did this get taken care of by #2643?
phobson commentedon Feb 27, 2014
Yes. With the
whiskwarg, you can now pass 'range' or a list ofpercentiles.
On Wed, Feb 26, 2014 at 7:39 PM, Thomas A Caswell
notifications@github.comwrote: