Title: Fix SVG rendering error in def update_background by AasmaGupta · Pull Request #30490 · matplotlib/matplotlib · GitHub
Open Graph Title: Fix SVG rendering error in def update_background by AasmaGupta · Pull Request #30490 · matplotlib/matplotlib
X Title: Fix SVG rendering error in def update_background by AasmaGupta · Pull Request #30490 · matplotlib/matplotlib
Description: Reference issue (if any) Example: AttributeError: 'FigureCanvasSVG' object has no attribute 'copy_from_bbox' Fixes #30485 Why is this change necessary? Saving figures as SVG could crash due to the way def update_background handled blitting in the lib/matplotlib/widgets.py file. This change prevents that crash. What problem does it solve? fixes the crash that occurred specifically when exporting plots to SVG format What is the reasoning for this implementation? Blitting is meant for interactive updates and isn’t needed when saving static outputs. Skipping it during SVG export prevents the crash while keeping normal interactive behavior intact. PR checklist [N/A] "closes #0000" is in the body of the PR description to link the related issue 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: Reference issue (if any) Example: AttributeError: 'FigureCanvasSVG' object has no attribute 'copy_from_bbox' Fixes #30485 Why is this change necessary? Saving figures as SVG could...
X Description: Reference issue (if any) Example: AttributeError: 'FigureCanvasSVG' object has no attribute 'copy_from_bbox' Fixes #30485 Why is this change necessary? Saving figu...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/30490
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:55c81d4b-d479-9d0e-ff6b-097844348149 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A4F8:378B6C:71F82F:994699:6A51D5FE |
| html-safe-nonce | 48791a9a8e3feef285b5b2cb6fbe8e5c1a97b02a4f4ac1fdb1fde6486ec60a15 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNEY4OjM3OEI2Qzo3MUY4MkY6OTk0Njk5OjZBNTFENUZFIiwidmlzaXRvcl9pZCI6IjEzMDUwOTQxNDc2MDMwMjc0NTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b91a979f827d69fac931007157b326d3c34ef384118b7af46cf12e52b53b50fb |
| hovercard-subject-tag | pull_request:2786238104 |
| 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/30490/files |
| twitter:image | https://avatars.githubusercontent.com/u/179412995?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/179412995?s=400&v=4 |
| og:image:alt | Reference issue (if any) Example: AttributeError: 'FigureCanvasSVG' object has no attribute 'copy_from_bbox' Fixes #30485 Why is this change necessary? Saving figures as SVG could... |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width