Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

FIX #30007: Raise ValueError when all wedge sizes are zero in ax.pie#30019

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
oscargus merged 6 commits intomatplotlib:mainfromalbus-droid:all-zero-ax-pie
May 6, 2025

Conversation

albus-droid
Copy link
Contributor

@albus-droidalbus-droid commentedMay 6, 2025
edited
Loading

PR summary

Thiscloses#30007,ax.pie will now throw a ValueError when all the wedges are zero , before entering the NaN conversion

PR checklist

Screenshot (128)

Copy link

@github-actionsgithub-actionsbot 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 uson gitter for real-time discussion.

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

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

@oscargus
Copy link
Member

Looks good! Can you please fix the linting issues? The best thing in general is to install pre-commit, seehttps://matplotlib.org/devdocs/devel/development_setup.html#install-pre-commit-hooks as that will avoid these things from happening. At the moment you can probably fix it by hand though.

albus-droid reacted with thumbs up emoji

@albus-droid
Copy link
ContributorAuthor

Thank you, I made the changes.

Copy link
Member

@rcomerrcomer left a comment

Choose a reason for hiding this comment

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

Thanks@albus-droid - looks good to me!

albus-droid reacted with thumbs up emoji
@oscargusoscargus merged commit9174093 intomatplotlib:mainMay 6, 2025
40 checks passed
@oscargus
Copy link
Member

Thanks@albus-droid and congratulations on your first merged PR in Matplotlib! Hope to see you around!

albus-droid reacted with heart emoji

@oscargusoscargus added this to thev3.11.0 milestoneMay 6, 2025
@albus-droidalbus-droid deleted the all-zero-ax-pie branchMay 6, 2025 16:44
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@oscargusoscargusoscargus left review comments

@github-actionsgithub-actions[bot]github-actions[bot] left review comments

@rcomerrcomerrcomer approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
v3.11.0
Development

Successfully merging this pull request may close these issues.

Axes.pie([0, 0]) crashes with “cannot convert float NaN to integer” when all slice sizes are zero
3 participants
@albus-droid@oscargus@rcomer

[8]ページ先頭

©2009-2025 Movatter.jp