Title: MAINT: Clone more legend settings in Qt figure options by jhkr1 · Pull Request #32014 · matplotlib/matplotlib · GitHub
Open Graph Title: MAINT: Clone more legend settings in Qt figure options by jhkr1 · Pull Request #32014 · matplotlib/matplotlib
X Title: MAINT: Clone more legend settings in Qt figure options by jhkr1 · Pull Request #32014 · matplotlib/matplotlib
Description: PR summary Closes #17775 When regenerating the legend in the Qt figure options dialog, the code currently only preserves the ncols and draggable properties. Any other custom settings the user might have configured on the legend (like title, location, or frame styling) are completely discarded and reset to defaults when clicking "Apply". This PR fixes this by extracting additional useful properties (like title, loc, frameon, shadow, edgecolor, facecolor, and framealpha) from the old legend and passing them to the new legend, ensuring that user configurations are preserved. AI Disclosure I wrote and structured the PR myself, relying on the documentation and the internal attributes of the Legend class. PR checklist "closes #17775" is in the body of the PR description to link the related issue [N/A] new and changed code is tested [N/A] Plotting related features are demonstrated in an example [N/A] New Features and API Changes are noted with a directive and release note [N/A] Documentation complies with general and docstring guidelines
Open Graph Description: PR summary Closes #17775 When regenerating the legend in the Qt figure options dialog, the code currently only preserves the ncols and draggable properties. Any other custom settings the user might...
X Description: PR summary Closes #17775 When regenerating the legend in the Qt figure options dialog, the code currently only preserves the ncols and draggable properties. Any other custom settings the user might...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/32014
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:cd741a84-3a6a-2ba9-e46d-add9e9f735cf |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BB78:3F9E46:47A341:67185F:6A549D68 |
| html-safe-nonce | bb4eb6ba3d247c60259d8a26d1bd90bed944b940ace2020ca34eb6ec7ac18001 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjc4OjNGOUU0Njo0N0EzNDE6NjcxODVGOjZBNTQ5RDY4IiwidmlzaXRvcl9pZCI6Ijc2NzExMjM4NTM3NDIyMTg2MDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f675f691c97b111faf24576688dd61786dcb8687fb5352625e0c1d410dc41272 |
| hovercard-subject-tag | pull_request:4010764065 |
| 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/32014/files |
| twitter:image | https://avatars.githubusercontent.com/u/110290060?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/110290060?s=400&v=4 |
| og:image:alt | PR summary Closes #17775 When regenerating the legend in the Qt figure options dialog, the code currently only preserves the ncols and draggable properties. Any other custom settings the user might... |
| 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 |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f8cfff6384f62259baea531c7f58bc7040f8dd92 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width