Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Boxplot: Median line too long after changing linewidth #26345

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

Closed
wants to merge 4 commits into from

Conversation

YueHuaJi
Copy link

PR Description

When changing the .linewidth property of the median line in boxplots, the line will extend beyond the box width.

PR Changes

After we refer to many methods, we chose one method as the main implementation method, which is as followed:
First,we added a default capstyle preventing this from happening.
Second, we also changed the zdelta, so that the median and mean lines no longer overlap the box's border.

PR checklist

  • The code follows the project's coding style.
  • Pass all tests successfully.
  • Using the method, the issue is solve correctly.

YueHuaJi added 4 commits July 3, 2023 20:30
Boxplot: Median line too long after changing linewidth--Not Yet
@jklymak
Copy link
Member

jklymak commented Jul 18, 2023

Consider adding a before and after plot to the PR description so we know what changed. I'm also confused how this can be tested with a figures_equal rather than a proper image test - but I may not understand what you have done properly.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for opening your first PR into Matplotlib!

If you have not heard from us in a week or so, please leave a new comment below and that should bring it to our attention. Most of our reviewers are volunteers and sometimes things fall through the cracks.

You can also join us on gitter for real-time discussion.

For details on testing, writing docs, and our review process, please see the developer guide

We strive to be a welcoming and open project. Please follow our Code of Conduct.

@rcomer
Copy link
Member

rcomer commented Jul 18, 2023

This looks to be a continuation of #23335.

@YueHuaJi please could you add “Closes #19409” somewhere in your original post.
That will link the issue to this pull request so it closes automatically when the PR is merged.

@YueHuaJi YueHuaJi closed this Jul 18, 2023
@melissawm
Copy link
Member

Hi @YueHuaJi - did you really mean to close this?

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

Successfully merging this pull request may close these issues.

4 participants