GeezerVison is showing github.com — Boxplot: allow whiskers to always cover entire range · Issue #1455 · matplotlib/matplotlib
Boxplot: allow whiskers to always cover entire range #1455DescriptionSometimes, 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. Activitytacaswell commented on Nov 27, 2013 @phobson another old boxplot issue that you might want to look at. phobson commented on Nov 27, 2013 phobson commented on 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 commented on Dec 3, 2013 ContributorAuthor More actions @phobson Like the bug description states: the value of whis is ignored under certain circumstances. phobson commented on 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 commented on Dec 3, 2013 ContributorAuthor More actions I think as long as the whiskers do not disappear I'd be quite happy! Thanks for having a look at this @phobson tacaswell commented on Feb 27, 2014 phobson commented on Feb 27, 2014
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|