Title: plt.ioff() not suppressing figure generation · Issue #14950 · matplotlib/matplotlib · GitHub
Open Graph Title: plt.ioff() not suppressing figure generation · Issue #14950 · matplotlib/matplotlib
X Title: plt.ioff() not suppressing figure generation · Issue #14950 · matplotlib/matplotlib
Description: Bug report Bug summary Usual behaviour for supressing plots (by enabling plt.ioff()) no longer working since update to latest version of conda. Code for reproduction import numpy as np import matplotlib.pyplot as plt x = np.random.rand(1...
Open Graph Description: Bug report Bug summary Usual behaviour for supressing plots (by enabling plt.ioff()) no longer working since update to latest version of conda. Code for reproduction import numpy as np import matpl...
X Description: Bug report Bug summary Usual behaviour for supressing plots (by enabling plt.ioff()) no longer working since update to latest version of conda. Code for reproduction import numpy as np import matpl...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/14950
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"plt.ioff() not suppressing figure generation","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\nUsual behaviour for supressing plots (by enabling plt.ioff()) no longer working since update to latest version of conda.\r\n\r\n**Code for reproduction**\r\n```python\r\nimport numpy as np\r\nimport matplotlib.pyplot as plt\r\n\r\nx = np.random.rand(10)\r\ny = np.random.rand(10)\r\n\r\nplt.ioff()\r\nplt.plot(x, y)\r\n```\r\n\r\n**Actual outcome**\r\nIn Spyder IDE, still generates figure window. \r\n\r\n\r\n**Expected outcome**\r\nFigure window should not appear. plt.ioff() should disable interactive mode, and require a plt.show() call to generate figure window.\r\n\r\n**Matplotlib version**\r\n * Operating system: Windows 10\r\n * Matplotlib version: 3.1.0\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): Qt5Agg\r\n * Python version: 3.7.3\r\n * Jupyter version (if applicable):\r\n * Other libraries: numpy 1.16.4\r\n\r\n\u003c!--Please tell us how you installed matplotlib and python e.g., from source, pip, conda--\u003e\r\nconda\r\n\r\n\u003c!--If you installed from conda, please specify which channel you used if not the default--\u003e\r\nDefault channel (via https://www.anaconda.com/distribution/ )","author":{"url":"https://github.com/Yoshi2112","@type":"Person","name":"Yoshi2112"},"datePublished":"2019-08-01T04:04:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/14950/matplotlib/issues/14950"}
| 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:55cdcf41-3e45-9a32-61a8-856a32a849fc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E284:2BA6B2:B7C313:10C3D57:6A560AE1 |
| html-safe-nonce | 8fc858d9f032a06b0610fa739db0c07216cc518f7c8938a52fcd22172bedbcdb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjg0OjJCQTZCMjpCN0MzMTM6MTBDM0Q1Nzo2QTU2MEFFMSIsInZpc2l0b3JfaWQiOiI2NjY1NTk3Mzc2MTAyMDA5NTY5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 232e2e0fe19b5904c760643dd4b05e10fe544681011102730eff19cef6f619ad |
| hovercard-subject-tag | issue:475460075 |
| 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/14950/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ccc27c002128fa84cc3ccdb3ed9cfb0046f18be623f27701648e35fab68b52e9/matplotlib/matplotlib/issues/14950 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ccc27c002128fa84cc3ccdb3ed9cfb0046f18be623f27701648e35fab68b52e9/matplotlib/matplotlib/issues/14950 |
| og:image:alt | Bug report Bug summary Usual behaviour for supressing plots (by enabling plt.ioff()) no longer working since update to latest version of conda. Code for reproduction import numpy as np import matpl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Yoshi2112 |
| hostname | github.com |
| expected-hostname | github.com |
| None | f4368738fc918fecd9b3958f6b49218bbe60d4185f38e72e3954e11f1ad0213a |
| 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 | 85a7179838b41e8b23f939d3b67b53f752ecfc54 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width