Title: figure background color not respected by savefig() · Issue #17321 · matplotlib/matplotlib · GitHub
Open Graph Title: figure background color not respected by savefig() · Issue #17321 · matplotlib/matplotlib
X Title: figure background color not respected by savefig() · Issue #17321 · matplotlib/matplotlib
Description: The figure background color is not respected by savefig(). MWE: import matplotlib.pyplot as plt fig = plt.figure() plt.plot([1, 2, 3], [1, 2, 3]) plt.gca().set_facecolor('#2d2d2d') plt.gcf().patch.set_facecolor('#2d2d2d') # plt.show() pl...
Open Graph Description: The figure background color is not respected by savefig(). MWE: import matplotlib.pyplot as plt fig = plt.figure() plt.plot([1, 2, 3], [1, 2, 3]) plt.gca().set_facecolor('#2d2d2d') plt.gcf().patch....
X Description: The figure background color is not respected by savefig(). MWE: import matplotlib.pyplot as plt fig = plt.figure() plt.plot([1, 2, 3], [1, 2, 3]) plt.gca().set_facecolor('#2d2d2d') plt.gcf(...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/17321
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"figure background color not respected by savefig()","articleBody":"The figure background color is not respected by `savefig()`. MWE:\r\n```python\r\nimport matplotlib.pyplot as plt\r\n\r\nfig = plt.figure()\r\nplt.plot([1, 2, 3], [1, 2, 3])\r\n\r\nplt.gca().set_facecolor('#2d2d2d')\r\nplt.gcf().patch.set_facecolor('#2d2d2d')\r\n\r\n# plt.show()\r\nplt.savefig(\"out.png\")\r\n```\r\nshow():\r\n\r\n\r\nsavefig():\r\n\r\n","author":{"url":"https://github.com/nschloe","@type":"Person","name":"nschloe"},"datePublished":"2020-05-04T08:34:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/17321/matplotlib/issues/17321"}
| 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:3c68750a-b040-6fc1-32b8-b12c76d399ad |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B510:18F220:539D70:72BE39:6A5344C6 |
| html-safe-nonce | 11543fdfddea99e1a6db2ad638df976c6409267a33cc6910c2a05012942bcb2f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTEwOjE4RjIyMDo1MzlENzA6NzJCRTM5OjZBNTM0NEM2IiwidmlzaXRvcl9pZCI6IjE1ODU0ODI4NTQwNzAxNzQ5MTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 38f5d29608a9a88b3ee15843f68be2c7b4bad7cb454e85bf4f6a21b77ce8c105 |
| hovercard-subject-tag | issue:611696656 |
| 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/17321/issue_layout |
| twitter:image | https://opengraph.githubassets.com/944cb5d1eb9700dd3911301d690010ff5f171e4dbfdc0ec0bfe5c89bea8b4c45/matplotlib/matplotlib/issues/17321 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/944cb5d1eb9700dd3911301d690010ff5f171e4dbfdc0ec0bfe5c89bea8b4c45/matplotlib/matplotlib/issues/17321 |
| og:image:alt | The figure background color is not respected by savefig(). MWE: import matplotlib.pyplot as plt fig = plt.figure() plt.plot([1, 2, 3], [1, 2, 3]) plt.gca().set_facecolor('#2d2d2d') plt.gcf().patch.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nschloe |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width