Skip to content

Boxplot: allow whiskers to always cover entire range #1455

Closed

Description

@stefanv

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.

Activity

  1. tacaswell commented on Nov 27, 2013

    @tacaswell
    Member

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

  2. phobson commented on Nov 27, 2013

    @phobson
    Member

    @tacaswell Thanks. Will do.

  3. phobson commented on Dec 3, 2013

    @phobson
    Member

    @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 ;)

  4. stefanv commented on Dec 3, 2013

    @stefanv
    ContributorAuthor

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

  5. phobson commented on Dec 3, 2013

    @phobson
    Member

    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.

  6. stefanv commented on Dec 3, 2013

    @stefanv
    ContributorAuthor

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

  7. tacaswell commented on Feb 27, 2014

    @tacaswell
    Member

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

  8. phobson commented on Feb 27, 2014

    @phobson
    Member

    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions