Skip to content

2.0 beta: Boxplot patches zorder differs from lines #6510

Closed

Description

@Tillsten

See the example from the devdocs:

http://matplotlib.org/devdocs/examples/statistics/boxplot_color_demo.html

The patches are behind the grid while the lines are in front of it.
Maybe patches should be in front of grid by default also, which i
think is the more common case.

Activity

  1. added this to the milestone on May 31, 2016
  2. efiring commented on Jun 19, 2016

    @efiring
    Member

    @Tillsten would you like to submit a PR? I think there are two possible ways to address it: either make the default grid lines zorder below patches and then explicitly set the zorder for filled contours (patch collections) and probably others to be above, or leave the default grid lines zorder where it is and elevate the boxplot patches. My preference is for the second option because I suspect that there will be common cases in addition to filled contours (bar plots? Histograms? Step-filled plots?) where having the patches above the grid will not be what users intend.
    Part of the problem here is that the switch from dashed to solid grid lines made them more prominent and obtrusive. That is the reason I moved them behind lines. My rationale for leaving them above patches was that patches are often big (or cover everything, as in the contourf case), so putting the grid behind them would defeat the purpose of having a grid. This is also the reason that the grid is above images.

  3. added a commit that references this issue on Jul 16, 2016
    a6891a9
  4. self-assigned this
    on Jul 16, 2016
  5. added a commit that references this issue on Jul 25, 2016
    297945c
  6. jenshnielsen commented on Aug 8, 2016

    @jenshnielsen
    Member

    fixed by #6766

  7. tacaswell commented on Aug 13, 2016

    @tacaswell
    Member

    attn @Tillsten do you agree that this is fixed?

  8. Tillsten commented on Aug 14, 2016

    @Tillsten
    ContributorAuthor

    Yes, would have totally do the same, set eqaul zorder with small delta!

  9. added a commit that references this issue on Aug 17, 2016
    e3265a1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions