Title: FIX: Prevent set_alpha from changing color of legend patch by StefRe · Pull Request #22009 · matplotlib/matplotlib · GitHub
Open Graph Title: FIX: Prevent set_alpha from changing color of legend patch by StefRe · Pull Request #22009 · matplotlib/matplotlib
X Title: FIX: Prevent set_alpha from changing color of legend patch by StefRe · Pull Request #22009 · matplotlib/matplotlib
Description: of polycollection (e.g. from fill_between) by updating original edge and face color too. Closes #21966 PR Summary When updating the properties of the legend patch from the PolyCollection returned by fill_between, the HandlerPolyCollection failed to set the original edge and face colors so that when later setting the alpha of the patch, its color was set to the default C0. This was fixed by updating the original edge and face colors too. PR Checklist Tests and Styling Has pytest style unit tests (and pytest passes). Is Flake 8 compliant (install flake8-docstrings and run flake8 --docstring-convention=all). Documentation [n/a] New features are documented, with examples if plot related. [n/a] New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there). [n/a] API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there). [n/a] Documentation is sphinx and numpydoc compliant (the docs should build without error).
Open Graph Description: of polycollection (e.g. from fill_between) by updating original edge and face color too. Closes #21966 PR Summary When updating the properties of the legend patch from the PolyCollection returned b...
X Description: of polycollection (e.g. from fill_between) by updating original edge and face color too. Closes #21966 PR Summary When updating the properties of the legend patch from the PolyCollection returned b...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/22009
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:8c5bfcfd-a168-d97c-3ba7-5d3ca44b28cc |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9DEA:2A8696:4C678D9:6A4B1B6:6A54F8DE |
| html-safe-nonce | 33e500aaa3b545c679b261687b33e3ecbe7110a5179395d713e51ea65d6793c8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5REVBOjJBODY5Njo0QzY3OEQ5OjZBNEIxQjY6NkE1NEY4REUiLCJ2aXNpdG9yX2lkIjoiMTczMzAzNDU3MDAzMzcyMzYxNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 310e90e7bdc9182046a69a2334635f61e9c29ec4122c66f503480be36061b386 |
| hovercard-subject-tag | pull_request:806144632 |
| 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/22009/files |
| twitter:image | https://avatars.githubusercontent.com/u/19879328?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/19879328?s=400&v=4 |
| og:image:alt | of polycollection (e.g. from fill_between) by updating original edge and face color too. Closes #21966 PR Summary When updating the properties of the legend patch from the PolyCollection returned b... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | eae2aab99907699a22d2c8449aa683ca74454fca87211b98f7c7b722086b2839 |
| 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 | dd26d3896747463b6bd56edd5e290edb595c3cbc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width