Title: BUG: Fix bug with mutable input modification by larsoner · Pull Request #24657 · matplotlib/matplotlib · GitHub
Open Graph Title: BUG: Fix bug with mutable input modification by larsoner · Pull Request #24657 · matplotlib/matplotlib
X Title: BUG: Fix bug with mutable input modification by larsoner · Pull Request #24657 · matplotlib/matplotlib
Description: PR Summary On main, imsave (and thus fig.savefig) modifies the mutable pil_kwargs without making a copy. The modified tests fail on main but pass on this PR. PR Checklist Documentation and Tests Has pytest style unit tests (and pytest passes) Documentation is sphinx and numpydoc compliant (the docs should build without error). New plotting related features are documented with examples. Release Notes New features are marked with a .. versionadded:: directive in the docstring and documented in doc/users/next_whats_new/ API changes are marked with a .. versionchanged:: directive in the docstring and documented in doc/api/next_api_changes/ Release notes conform with instructions in next_whats_new/README.rst or next_api_changes/README.rst
Open Graph Description: PR Summary On main, imsave (and thus fig.savefig) modifies the mutable pil_kwargs without making a copy. The modified tests fail on main but pass on this PR. PR Checklist Documentation and Tests ...
X Description: PR Summary On main, imsave (and thus fig.savefig) modifies the mutable pil_kwargs without making a copy. The modified tests fail on main but pass on this PR. PR Checklist Documentation and Tests ...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/24657
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:f48bd294-9d41-f2f9-dfc4-90e3adecb659 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A4FE:1FCD98:14E82BE:1BB10D5:6A51B6F1 |
| html-safe-nonce | 5ffc45cf88a9eb1fe6a098fa8e9d2202942ad0b02332dac6f210336a96b24d3b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNEZFOjFGQ0Q5ODoxNEU4MkJFOjFCQjEwRDU6NkE1MUI2RjEiLCJ2aXNpdG9yX2lkIjoiNTk3MzY2MDI0MzI5MjQzNjIwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9ff9085fc07544f22ba1ab923f34e6cf54e6431dec176a5580e860585ef1ca25 |
| hovercard-subject-tag | pull_request:1152166121 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/matplotlib/matplotlib/pull/24657/files |
| twitter:image | https://avatars.githubusercontent.com/u/2365790?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/2365790?s=400&v=4 |
| og:image:alt | PR Summary On main, imsave (and thus fig.savefig) modifies the mutable pil_kwargs without making a copy. The modified tests fail on main but pass on this PR. PR Checklist Documentation and Tests ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width