Title: Reset view not working in interactive TkAgg backend · Issue #9764 · matplotlib/matplotlib · GitHub
Open Graph Title: Reset view not working in interactive TkAgg backend · Issue #9764 · matplotlib/matplotlib
X Title: Reset view not working in interactive TkAgg backend · Issue #9764 · matplotlib/matplotlib
Description: Bug report When using TkAgg in interactive mode, the 'reset view' and 'back to previous view' buttons do not work. However, everything works fine when I am not in interactive mode or using Qt5Agg. Code for reproduction import matplotlib ...
Open Graph Description: Bug report When using TkAgg in interactive mode, the 'reset view' and 'back to previous view' buttons do not work. However, everything works fine when I am not in interactive mode or using Qt5Agg. ...
X Description: Bug report When using TkAgg in interactive mode, the 'reset view' and 'back to previous view' buttons do not work. However, everything works fine when I am not in interactive mode o...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/9764
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Reset view not working in interactive TkAgg backend","articleBody":"### Bug report\r\n\r\nWhen using TkAgg in interactive mode, the 'reset view' and 'back to previous view' buttons do not work. However, everything works fine when I am not in interactive mode or using Qt5Agg.\r\n\r\n**Code for reproduction**\r\n```python\r\nimport matplotlib\r\nmatplotlib.use('TkAgg')\r\nimport matplotlib.pyplot as plt\r\nplt.ion()\r\nplt.plot(range(10))\r\n```\r\nThen I zoom in and click on 'reset view' / 'back to previous view' and nothing happens. This happens both in the python command line and the jupyter qt console.\r\n\r\nHowever, if I do the same but with \r\n```python\r\nimport matplotlib\r\nmatplotlib.use('TkAgg')\r\nimport matplotlib.pyplot as plt\r\nplt.ioff()\r\nplt.plot(range(10))\r\nplt.show()\r\n```\r\nthen both buttons work. It is specific to the TkAgg backend because the interactive mode works fine with Qt5Agg.\r\n\r\n**Matplotlib version**\r\n * Operating system: Archlinux\r\n * Matplotlib version: 2.1.0\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): TkAgg\r\n * Python version: 3.6.3\r\n * Jupyter version (if applicable): 4.1.0\r\n\r\nI installed python and matplotlib from the official archlinux repository.\r\n\r\n","author":{"url":"https://github.com/j4321","@type":"Person","name":"j4321"},"datePublished":"2017-11-13T13:25:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/9764/matplotlib/issues/9764"}
| 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:2519df53-5cc1-705b-7218-dc798ad8b64e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D626:1F08C5:50C6FF:6AC6CE:6A53EA63 |
| html-safe-nonce | e47271c1663ee983f8229c9edbd44c89e0cb1c8945d8999b00156900ab7a7962 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjI2OjFGMDhDNTo1MEM2RkY6NkFDNkNFOjZBNTNFQTYzIiwidmlzaXRvcl9pZCI6IjUwMjA4MDQ5MDM4MTMyNDU1MzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5e687b7c1672fbb91184ab18963252ceaab9c427e88dc729cc759d6d0cb2df36 |
| hovercard-subject-tag | issue:273428263 |
| 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/9764/issue_layout |
| twitter:image | https://opengraph.githubassets.com/65d847aaf76589a27176d35b97e8b8e9a41ccaed790ff4d09bceac02f63a3c75/matplotlib/matplotlib/issues/9764 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/65d847aaf76589a27176d35b97e8b8e9a41ccaed790ff4d09bceac02f63a3c75/matplotlib/matplotlib/issues/9764 |
| og:image:alt | Bug report When using TkAgg in interactive mode, the 'reset view' and 'back to previous view' buttons do not work. However, everything works fine when I am not in interactive mode or using Qt5Agg. ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | j4321 |
| 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-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width