-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Allow Python native sequences in Matplotlib imsave().
#29931
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
Conversation
Co-authored-by: Yuepeng Gu <yuepengg@andrew.cmu.edu>
There was a problem hiding this 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.
…tlib `imsave()`.
|
Why did ruff not catch the style errors here (which the backport did since it's still using flake8)? |
It seems the rule According to the Ruff documentation, this rule is currently marked as unstable, so Matplotlib doesn’t appear to make use of it at the moment. |
PR summary
This PR addresses issue #29183 by casting Python sequence types (e.g., lists or tuples) to
NumPyarrays during the image saving process.The implementation is inspired by PR #29203 by @gpxxlt, which currently appears to be on hold.
PR checklist