Title: _tkinter.TclError: can't invoke "wm" command: application has been destroyed · Issue #10287 · matplotlib/matplotlib · GitHub
Open Graph Title: _tkinter.TclError: can't invoke "wm" command: application has been destroyed · Issue #10287 · matplotlib/matplotlib
X Title: _tkinter.TclError: can't invoke "wm" command: application has been destroyed · Issue #10287 · matplotlib/matplotlib
Description: Install sudo python -mpip install -U matplotlib Successfully installed matplotlib-2.1.2 Code plt.show() fig.savefig('./result.png',bbox_inches='tight') # save the figure to file plt.close(fig) # close the figure OS: Ubuntu 16.04, The err...
Open Graph Description: Install sudo python -mpip install -U matplotlib Successfully installed matplotlib-2.1.2 Code plt.show() fig.savefig('./result.png',bbox_inches='tight') # save the figure to file plt.close(fig) # cl...
X Description: Install sudo python -mpip install -U matplotlib Successfully installed matplotlib-2.1.2 Code plt.show() fig.savefig('./result.png',bbox_inches='tight') # save the figure to file plt...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/10287
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"_tkinter.TclError: can't invoke \"wm\" command: application has been destroyed","articleBody":"Install\r\n```sudo python -mpip install -U matplotlib```\r\n\u003eSuccessfully installed matplotlib-2.1.2\r\n\r\nCode\r\n```\r\n plt.show()\r\n fig.savefig('./result.png',bbox_inches='tight') # save the figure to file\r\n plt.close(fig) # close the figure\r\n```\r\nOS: Ubuntu 16.04, \r\nThe error:\r\n```\r\nfig.savefig('./result.png',bbox_inches='tight') # save the figure to file\r\n File \"/usr/local/lib/python2.7/dist-packages/matplotlib/figure.py\", line 1834, in savefig\r\n self.canvas.print_figure(fname, **kwargs)\r\n File \"/usr/local/lib/python2.7/dist-packages/matplotlib/backend_bases.py\", line 2188, in print_figure\r\n self.figure.dpi = dpi\r\n File \"/usr/local/lib/python2.7/dist-packages/matplotlib/figure.py\", line 436, in _set_dpi\r\n self.set_size_inches(w, h, forward=forward)\r\n File \"/usr/local/lib/python2.7/dist-packages/matplotlib/figure.py\", line 745, in set_size_inches\r\n manager.resize(int(canvasw), int(canvash))\r\n File \"/usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_tkagg.py\", line 540, in resize\r\n self.canvas._tkcanvas.master.geometry(\"%dx%d\" % (width, height))\r\n File \"/usr/lib/python2.7/lib-tk/Tkinter.py\", line 1667, in wm_geometry\r\n return self.tk.call('wm', 'geometry', self._w, newGeometry)\r\n_tkinter.TclError: can't invoke \"wm\" command: application has been destroyed\r\n```","author":{"url":"https://github.com/John1231983","@type":"Person","name":"John1231983"},"datePublished":"2018-01-22T02:33:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/10287/matplotlib/issues/10287"}
| 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:711b75ff-b813-6d76-846b-673e19b1d97a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C614:25BF4:4FCA61:6C3C13:6A5343AA |
| html-safe-nonce | fa9f2bfefda6d30dc3abb28e2a3071fd9e53f8f36a0b877f24980789977fa379 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjE0OjI1QkY0OjRGQ0E2MTo2QzNDMTM6NkE1MzQzQUEiLCJ2aXNpdG9yX2lkIjoiMzY3MDE4ODk0MDc4OTQ5ODc5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6cd68f77b83452634f2ca1b45a062c172e6b4ff026ba847ee31f20e7d8508b92 |
| hovercard-subject-tag | issue:290334071 |
| 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/10287/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0e2d6c70ed98d7292e6c05f28d3dbb77449c38deb91d001f3c381b1f6b19997d/matplotlib/matplotlib/issues/10287 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0e2d6c70ed98d7292e6c05f28d3dbb77449c38deb91d001f3c381b1f6b19997d/matplotlib/matplotlib/issues/10287 |
| og:image:alt | Install sudo python -mpip install -U matplotlib Successfully installed matplotlib-2.1.2 Code plt.show() fig.savefig('./result.png',bbox_inches='tight') # save the figure to file plt.close(fig) # cl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | John1231983 |
| 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 | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width