Title: XKCD context manager not resetting anymore in 2.1 · Issue #9520 · matplotlib/matplotlib · GitHub
Open Graph Title: XKCD context manager not resetting anymore in 2.1 · Issue #9520 · matplotlib/matplotlib
X Title: XKCD context manager not resetting anymore in 2.1 · Issue #9520 · matplotlib/matplotlib
Description: Bug report Bug summary The xkcd context manager does not reset the config anymore Code for reproduction import matplotlib.pyplot as plt with plt.xkcd(): plt.figure() plt.plot([1, 2, 3]) plt.savefig('xkcd.png', dpi=300) plt.figure() plt.p...
Open Graph Description: Bug report Bug summary The xkcd context manager does not reset the config anymore Code for reproduction import matplotlib.pyplot as plt with plt.xkcd(): plt.figure() plt.plot([1, 2, 3]) plt.savefig...
X Description: Bug report Bug summary The xkcd context manager does not reset the config anymore Code for reproduction import matplotlib.pyplot as plt with plt.xkcd(): plt.figure() plt.plot([1, 2, 3]) plt.savefig...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/9520
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"XKCD context manager not resetting anymore in 2.1","articleBody":"\u003c!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--\u003e\r\n\u003c!--You can feel free to delete the sections that do not apply.--\u003e\r\n\r\n### Bug report\r\n\r\n**Bug summary**\r\n\r\nThe xkcd context manager does not reset the config anymore\r\n\r\n\u003c!--A short 1-2 sentences that succinctly describes the bug--\u003e\r\n\r\n**Code for reproduction**\r\n\r\n\r\n\u003c!--A minimum code snippet required to reproduce the bug, also minimizing the number of dependencies required--\u003e\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\n\r\nwith plt.xkcd():\r\n plt.figure()\r\n plt.plot([1, 2, 3])\r\n plt.savefig('xkcd.png', dpi=300)\r\n\r\n\r\nplt.figure()\r\nplt.plot([1, 2, 3])\r\nplt.savefig('not_xkcd.png', dpi=300)\r\n```\r\n\r\n**Actual outcome**\r\n\r\nBoth figures are in xkcd style\r\n\r\n\r\n\r\n**Expected outcome**\r\nSecond figure should be using default style\r\n\r\n\u003c!--A description of the expected outcome from the code snippet--\u003e\r\n\u003c!--If this used to work in an earlier version of Matplotlib, please note the version it used to work on--\u003e\r\n\r\n**Matplotlib version**\r\n\u003c!--Please specify your platform and versions of the relevant libraries you are using:--\u003e\r\n * Operating system:\r\n * Matplotlib version: 2.1\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): Qt5Agg\r\n * Python version: 3.6\r\n\r\nusing anaconda\r\n\r\n\u003c!--Please tell us how you installed matplotlib and python e.g., from source, pip, conda--\u003e\r\n\u003c!--If you installed from conda, please specify which channel you used if not the default--\u003e\r\n\r\n","author":{"url":"https://github.com/maxnoe","@type":"Person","name":"maxnoe"},"datePublished":"2017-10-22T15:27:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/9520/matplotlib/issues/9520"}
| 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:a90d477f-eb1e-8768-2f85-aba80cdfa754 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 97B6:146969:1B6E33:244EAD:6A52C42E |
| html-safe-nonce | 4d140f5ecd2c9b11d7c41faabe562532f7d82cfe593f2f224a857f6c36f775d2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0I2OjE0Njk2OToxQjZFMzM6MjQ0RUFEOjZBNTJDNDJFIiwidmlzaXRvcl9pZCI6IjE2NzI2MDk2MjAwMzg5NjAxNzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8eaf478f4547b77b0380726fb0773a85a16e7aa320d3ab2dbcc1cef9bae2f7ea |
| hovercard-subject-tag | issue:267473899 |
| 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/9520/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ef6f546b64f9fd79397d7b2a8b03c659097668871653beb89d3b95bd487c6afb/matplotlib/matplotlib/issues/9520 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ef6f546b64f9fd79397d7b2a8b03c659097668871653beb89d3b95bd487c6afb/matplotlib/matplotlib/issues/9520 |
| og:image:alt | Bug report Bug summary The xkcd context manager does not reset the config anymore Code for reproduction import matplotlib.pyplot as plt with plt.xkcd(): plt.figure() plt.plot([1, 2, 3]) plt.savefig... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | maxnoe |
| 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