Title: [Bug]: savefig(..., transparent=True) does not make inset_axes transparent · Issue #22674 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: savefig(..., transparent=True) does not make inset_axes transparent · Issue #22674 · matplotlib/matplotlib
X Title: [Bug]: savefig(..., transparent=True) does not make inset_axes transparent · Issue #22674 · matplotlib/matplotlib
Description: Bug summary All's in the title. Code for reproduction from pylab import * gca().inset_axes([.1, .2, .3, .4]); savefig("/tmp/test.png", transparent=True) # then display /tmp/test.png with a viewer that distinguishes between white and tran...
Open Graph Description: Bug summary All's in the title. Code for reproduction from pylab import * gca().inset_axes([.1, .2, .3, .4]); savefig("/tmp/test.png", transparent=True) # then display /tmp/test.png with a viewer t...
X Description: Bug summary All's in the title. Code for reproduction from pylab import * gca().inset_axes([.1, .2, .3, .4]); savefig("/tmp/test.png", transparent=True) # then display /tmp/test.png w...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/22674
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: savefig(..., transparent=True) does not make inset_axes transparent","articleBody":"### Bug summary\r\n\r\nAll's in the title.\r\n\r\n### Code for reproduction\r\n\r\n```python\r\nfrom pylab import *\r\ngca().inset_axes([.1, .2, .3, .4]); savefig(\"/tmp/test.png\", transparent=True)\r\n\r\n# then display /tmp/test.png with a viewer that distinguishes between white and transparent: the inset axes is not transparent.\r\n```\r\n\r\n\r\n### Actual outcome\r\n\r\nInset is not transparent.\r\n\r\n### Expected outcome\r\n\r\nInset is transparent (... well, admittedly I guess whether one wants this or not may be figure-dependent?) (mildly relatedly, see also #10023.)\r\n\r\n### Additional information\r\n\r\n_No response_\r\n\r\n### Operating system\r\n\r\narch linux\r\n\r\n### Matplotlib Version\r\n\r\n3.6.0.dev1856+ga2ddfc0c0f\r\n\r\n### Matplotlib Backend\r\n\r\nagg\r\n\r\n### Python version\r\n\r\n310\r\n\r\n### Jupyter version\r\n\r\nENOSUCHLIB\r\n\r\n### Installation\r\n\r\ngit checkout","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2022-03-20T13:51:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/22674/matplotlib/issues/22674"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:81653dcd-e927-9914-b459-a47bdda1808a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A5AA:E7D9B:302D37:400817:6A516937 |
| html-safe-nonce | aa714d0dd80b774bd227ffa898af5642ac929b62b5b022e5c2e840ae569fb802 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNUFBOkU3RDlCOjMwMkQzNzo0MDA4MTc6NkE1MTY5MzciLCJ2aXNpdG9yX2lkIjoiNjI1MTM1ODM3NjA4NjgyNTI3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9de6d49f76a850c9ec929d456dfdbf0fe06270222369567fec1df09b9f03d6d1 |
| hovercard-subject-tag | issue:1174555000 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/matplotlib/matplotlib/22674/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3f93d2beda8cce8845b78c1808f6ca90685a1e505014a238ebb1e8f0b89f7436/matplotlib/matplotlib/issues/22674 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3f93d2beda8cce8845b78c1808f6ca90685a1e505014a238ebb1e8f0b89f7436/matplotlib/matplotlib/issues/22674 |
| og:image:alt | Bug summary All's in the title. Code for reproduction from pylab import * gca().inset_axes([.1, .2, .3, .4]); savefig("/tmp/test.png", transparent=True) # then display /tmp/test.png with a viewer t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anntzer |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| 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 | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 60eaaf6d4dbaa817031b556aebd8a0a7eeb81b97 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width