Title: [Bug]: Tool Manager example broken · Issue #22088 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Tool Manager example broken · Issue #22088 · matplotlib/matplotlib
X Title: [Bug]: Tool Manager example broken · Issue #22088 · matplotlib/matplotlib
Description: Bug summary The Tool Manager example doesn't work. Code for reproduction python toolmanager_sgskip.py Actual outcome Tools are not added: matplotlib/examples/user_interfaces/toolmanager_sgskip.py Lines 77 to 78 in 0c1aa86 fig.canvas.mana...
Open Graph Description: Bug summary The Tool Manager example doesn't work. Code for reproduction python toolmanager_sgskip.py Actual outcome Tools are not added: matplotlib/examples/user_interfaces/toolmanager_sgskip.py L...
X Description: Bug summary The Tool Manager example doesn't work. Code for reproduction python toolmanager_sgskip.py Actual outcome Tools are not added: matplotlib/examples/user_interfaces/toolmanager_sgskip....
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/22088
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Tool Manager example broken","articleBody":"### Bug summary\n\nThe [Tool Manager example](https://matplotlib.org/devdocs/gallery/user_interfaces/toolmanager_sgskip.html) doesn't work.\r\n\r\n\n\n### Code for reproduction\n\n```python\npython toolmanager_sgskip.py\n```\n\n\n### Actual outcome\n\n- Tools are not added:\r\nhttps://github.com/matplotlib/matplotlib/blob/0c1aa86575126d5659bf885c7f283bbf2744fc4b/examples/user_interfaces/toolmanager_sgskip.py#L77-L78\r\n\r\n\r\n\r\n- Clicking on \"Configure subplots\" icon  crashes the program:\r\n```\r\nTraceback (most recent call last):\r\n File \"C:\\Programs\\Python38\\lib\\site-packages\\matplotlib\\backends\\backend_qt.py\", line 930, in handler\r\n self.trigger_tool(name)\r\n File \"C:\\Programs\\Python38\\lib\\site-packages\\matplotlib\\backend_bases.py\", line 3391, in trigger_tool\r\n self.toolmanager.trigger_tool(name, sender=self)\r\n File \"C:\\Programs\\Python38\\lib\\site-packages\\matplotlib\\backend_managers.py\", line 379, in trigger_tool\r\n self._trigger_tool(name, sender, canvasevent, data)\r\n File \"C:\\Programs\\Python38\\lib\\site-packages\\matplotlib\\backend_managers.py\", line 394, in _trigger_tool\r\n tool.trigger(sender, canvasevent, data)\r\n File \"C:\\Programs\\Python38\\lib\\site-packages\\matplotlib\\backends\\backend_qt.py\", line 970, in trigger\r\n NavigationToolbar2QT.configure_subplots(\r\n File \"C:\\Programs\\Python38\\lib\\site-packages\\matplotlib\\backends\\backend_qt.py\", line 753, in configure_subplots\r\n if self._subplot_dialog is None:\r\nAttributeError: 'types.SimpleNamespace' object has no attribute '_subplot_dialog'\r\n```\n\n### Expected outcome\n\n- tools being added\r\n- no crash\n\n### Additional information\n\n_No response_\n\n### Operating system\n\n_No response_\n\n### Matplotlib Version\n\n3.5.1\n\n### Matplotlib Backend\n\n_No response_\n\n### Python version\n\n_No response_\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\n_No response_","author":{"url":"https://github.com/StefRe","@type":"Person","name":"StefRe"},"datePublished":"2022-01-03T10:10:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/22088/matplotlib/issues/22088"}
| 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:c6d4c791-a15d-f544-18ce-11d152bd9437 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8A1A:204EAE:6C1019:9C0EFA:6A573766 |
| html-safe-nonce | 9776fb07b9981510c9bb0e47eacc9a01594df7a346e6c71d18ea923b328afcd0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTFBOjIwNEVBRTo2QzEwMTk6OUMwRUZBOjZBNTczNzY2IiwidmlzaXRvcl9pZCI6IjgyMDA5NTQ0MjA5OTEwNDc1MjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f6d6a2dcea892c06a7614e4c60d89e0f61267cfd11dcd79b25ca7299f38a0569 |
| hovercard-subject-tag | issue:1092379119 |
| 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/22088/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a8ba8bdb2a6a0ab755e28c4796878abd9ebdfed444f8da9b7f3bdca5bd0b566e/matplotlib/matplotlib/issues/22088 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a8ba8bdb2a6a0ab755e28c4796878abd9ebdfed444f8da9b7f3bdca5bd0b566e/matplotlib/matplotlib/issues/22088 |
| og:image:alt | Bug summary The Tool Manager example doesn't work. Code for reproduction python toolmanager_sgskip.py Actual outcome Tools are not added: matplotlib/examples/user_interfaces/toolmanager_sgskip.py L... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | StefRe |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98 |
| 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 | 2576d1f0198cf1588faf2edf27f1ed120903be10 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width