Title: different behaviour between 3.3.0 and 3.2.2 (and earlier) for plotting in a Tk canvas · Issue #18232 · matplotlib/matplotlib · GitHub
Open Graph Title: different behaviour between 3.3.0 and 3.2.2 (and earlier) for plotting in a Tk canvas · Issue #18232 · matplotlib/matplotlib
X Title: different behaviour between 3.3.0 and 3.2.2 (and earlier) for plotting in a Tk canvas · Issue #18232 · matplotlib/matplotlib
Description: Bug report I am trying to plot graphs in a Tk canvas, and I find different behavior for mpl 3.3.0 and 3.2.2. I am running the same code: The code I am reusing it from here: https://github.com/SuperMechaDeathChrist/Widgets/blob/master/plt...
Open Graph Description: Bug report I am trying to plot graphs in a Tk canvas, and I find different behavior for mpl 3.3.0 and 3.2.2. I am running the same code: The code I am reusing it from here: https://github.com/Super...
X Description: Bug report I am trying to plot graphs in a Tk canvas, and I find different behavior for mpl 3.3.0 and 3.2.2. I am running the same code: The code I am reusing it from here: https://github.com/Super...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/18232
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"different behaviour between 3.3.0 and 3.2.2 (and earlier) for plotting in a Tk canvas","articleBody":"### Bug report\r\nI am trying to plot graphs in a Tk canvas, and I find different behavior for mpl 3.3.0 and 3.2.2.\r\nI am running the same code: \r\n\r\nThe code I am reusing it from here: https://github.com/SuperMechaDeathChrist/Widgets/blob/master/plt_figure_w_controls.py \r\n\r\nit runs well for 3.2.2 and bellow but get the following error for 3.3.0:\r\n```python\r\nTraceback (most recent call last):\r\n File \"/home/yr2369/dev/mosydb/_personal/tests/plt_sg.py\", line 90, in \u003cmodule\u003e\r\n 'fig_cv').TKCanvas, fig, window.FindElement('controls_cv').TKCanvas)\r\n File \"/home/yr2369/dev/mosydb/_personal/tests/plt_sg.py\", line 17, in draw_figure_w_toolbar\r\n toolbar = Toolbar(figure_canvas_agg, canvas_toolbar)\r\n File \"/home/yr2369/dev/mosydb/_personal/tests/plt_sg.py\", line 34, in __init__\r\n super(Toolbar, self).__init__(*args, **kwargs)\r\n File \"/home/yr2369/anaconda3/envs/mosydb/lib/python3.7/site-packages/matplotlib/backends/_backend_tk.py\", line 525, in __init__\r\n NavigationToolbar2.__init__(self, canvas)\r\n File \"/home/yr2369/anaconda3/envs/mosydb/lib/python3.7/site-packages/matplotlib/backend_bases.py\", line 2866, in __init__\r\n self.set_history_buttons()\r\n File \"/home/yr2369/anaconda3/envs/mosydb/lib/python3.7/site-packages/matplotlib/backends/_backend_tk.py\", line 640, in set_history_buttons\r\n self._buttons['Back']['state'] = tk.DISABLED\r\nKeyError: 'Back'\r\n\r\nProcess finished with exit code 1\r\n```\r\nIt looks like an easy fix, but maybe I am wrong - let me know what additional details you need from me. \r\nI use python 3.7.8\r\nps - to test the code -` pip install pysimplegui`\r\n\r\nThank you","author":{"url":"https://github.com/yevgenyr","@type":"Person","name":"yevgenyr"},"datePublished":"2020-08-12T18:58:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/18232/matplotlib/issues/18232"}
| 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:7508131c-e71d-19b9-2e1f-3825be3c09b9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED0E:3A796C:2507D60:32C557D:6A53ACD2 |
| html-safe-nonce | 93792d66161fbea962d7823670c04ced24666095f7f5446902217defa8a91fab |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDBFOjNBNzk2QzoyNTA3RDYwOjMyQzU1N0Q6NkE1M0FDRDIiLCJ2aXNpdG9yX2lkIjoiNDEzNTY3NjUzODU1MjI5ODcwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 089c3da2d2f8b1132cd5369a36a48a6bfb6cbb16b283f42df0caa07308441cb7 |
| hovercard-subject-tag | issue:677908120 |
| 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/18232/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e0075d1bc2217b74f84e94734d66b89166791976e69ee713d7c7a7290499bd55/matplotlib/matplotlib/issues/18232 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e0075d1bc2217b74f84e94734d66b89166791976e69ee713d7c7a7290499bd55/matplotlib/matplotlib/issues/18232 |
| og:image:alt | Bug report I am trying to plot graphs in a Tk canvas, and I find different behavior for mpl 3.3.0 and 3.2.2. I am running the same code: The code I am reusing it from here: https://github.com/Super... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | yevgenyr |
| 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