Title: Any resizing of the plot after plt.show results in an error when closing the window · Issue #24395 · matplotlib/matplotlib · GitHub
Open Graph Title: Any resizing of the plot after plt.show results in an error when closing the window · Issue #24395 · matplotlib/matplotlib
X Title: Any resizing of the plot after plt.show results in an error when closing the window · Issue #24395 · matplotlib/matplotlib
Description: Bug summary After plt.show(), clicking on configure subplots and changing any parameter results in an error after closing the window. Code for reproduction import matplotlib.pyplot as plt plt.plot([0,1],[0,1]) plt.show() # after that, cl...
Open Graph Description: Bug summary After plt.show(), clicking on configure subplots and changing any parameter results in an error after closing the window. Code for reproduction import matplotlib.pyplot as plt plt.plot(...
X Description: Bug summary After plt.show(), clicking on configure subplots and changing any parameter results in an error after closing the window. Code for reproduction import matplotlib.pyplot as plt plt.plot(...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/24395
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Any resizing of the plot after plt.show results in an error when closing the window","articleBody":"### Bug summary\r\n\r\nAfter plt.show(), clicking on configure subplots and changing any parameter results in an error after closing the window.\r\n\r\n### Code for reproduction\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\nplt.plot([0,1],[0,1])\r\nplt.show()\r\n# after that, click on configure subplots and change any parameter, then close\r\n```\r\n\r\n\r\n### Actual outcome\r\n\r\nTraceback (most recent call last):\r\n File \"C:\\Users\\Bob\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\matplotlib\\cbook\\__init__.py\", line 307, in process\r\n func(*args, **kwargs)\r\n File \"C:\\Users\\Bob\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\matplotlib\\backend_bases.py\", line 3290, in \u003clambda\u003e\r\n \"close_event\", lambda e: manager.destroy())\r\n File \"C:\\Users\\Bob\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\matplotlib\\backends\\_backend_tk.py\", line 529, in destroy\r\n self._window_dpi.trace_remove('write', self._window_dpi_cbname)\r\n File \"C:\\Users\\Bob\\AppData\\Local\\Programs\\Python\\Python310\\lib\\tkinter\\__init__.py\", line 455, in trace_remove\r\n self._tk.deletecommand(cbname)\r\n_tkinter.TclError: can't delete Tcl command\r\n\r\n### Expected outcome\r\n\r\nClose without error\r\n\r\n### Additional information\r\n\r\n_No response_\r\n\r\n### Operating system\r\n\r\nWindows 10\r\n\r\n### Matplotlib Version\r\n\r\nmatplotlib-3.6.2\r\n\r\n### Matplotlib Backend\r\n\r\n_No response_\r\n\r\n### Python version\r\n\r\n3.10\r\n\r\n### Jupyter version\r\n\r\n_No response_\r\n\r\n### Installation\r\n\r\npip","author":{"url":"https://github.com/ameligrana","@type":"Person","name":"ameligrana"},"datePublished":"2022-11-08T00:29:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/24395/matplotlib/issues/24395"}
| 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:5db83407-3978-dde1-47ea-f0dd5818fa5b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E3DA:17596C:10F096B:1675D74:6A51A878 |
| html-safe-nonce | bfbe6ffdbeaa3a35ebbf902fb12e1998a9c46ad64dcc66a1a5f66c08f96ec217 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0RBOjE3NTk2QzoxMEYwOTZCOjE2NzVENzQ6NkE1MUE4NzgiLCJ2aXNpdG9yX2lkIjoiMTA4MzE3ODQxMDA5ODkyNzczNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7f7674604998855d984e55c1771bb5f65b9f082e0b47cbfd0edf249e3c82cd56 |
| hovercard-subject-tag | issue:1439210202 |
| 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/24395/issue_layout |
| twitter:image | https://opengraph.githubassets.com/755cced4099c2385502365bc8f4379e47894bd7d9f9f83cfb34221ca81bd85b0/matplotlib/matplotlib/issues/24395 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/755cced4099c2385502365bc8f4379e47894bd7d9f9f83cfb34221ca81bd85b0/matplotlib/matplotlib/issues/24395 |
| og:image:alt | Bug summary After plt.show(), clicking on configure subplots and changing any parameter results in an error after closing the window. Code for reproduction import matplotlib.pyplot as plt plt.plot(... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ameligrana |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width