Title: NavigationToolbar breaks if axes are added during use. · Issue #2511 · matplotlib/matplotlib · GitHub
Open Graph Title: NavigationToolbar breaks if axes are added during use. · Issue #2511 · matplotlib/matplotlib
X Title: NavigationToolbar breaks if axes are added during use. · Issue #2511 · matplotlib/matplotlib
Description: The NavigationToolbar saves the history of view limits in a stack. Each time the view is changed, the toolbar pushes the view limits for each axes onto the stack. Each time you go back it pops out the last view limits for each axes. If y...
Open Graph Description: The NavigationToolbar saves the history of view limits in a stack. Each time the view is changed, the toolbar pushes the view limits for each axes onto the stack. Each time you go back it pops out ...
X Description: The NavigationToolbar saves the history of view limits in a stack. Each time the view is changed, the toolbar pushes the view limits for each axes onto the stack. Each time you go back it pops out ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/2511
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"NavigationToolbar breaks if axes are added during use.","articleBody":"The NavigationToolbar saves the history of view limits in a stack. Each time the view is changed, the toolbar pushes the view limits for each axes onto the stack. Each time you go back it pops out the last view limits for each axes.\n\nIf you change the number of axes in-between changes to the view limits, then the number of pops won't match the number of pushes (or at least they won't correspond to the correct axes).\n\nMaybe the view stack could be stored on each axes object. Alternatively, the toolbar could store a dictionary mapping axes to view stacks (this might require some manual clean up if axes are deleted).\n\nSee also PR #1849.\n\nTo reproduce:\n\n``` python\nplt.subplot(211)\nplt.plot([0, 1])\n\n# Pan or zoom the plot.\n# If you press the Home button now, you'll return to the original view limits.\n\nplt.subplot(212)\n\n# If you press the Home button now, nothing will happen\n```\n","author":{"url":"https://github.com/tonysyu","@type":"Person","name":"tonysyu"},"datePublished":"2013-10-11T00:04:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":13},"url":"https://github.com/2511/matplotlib/issues/2511"}
| 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:59c16cab-fa4f-0c57-4600-b04dd9cd6df5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AFE8:17A244:A25EEB:DB59B5:6A531490 |
| html-safe-nonce | 223e4702ac4904b3dacfd53039fa1d39aa1dbfebb372188313434feeae8e9ff6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkU4OjE3QTI0NDpBMjVFRUI6REI1OUI1OjZBNTMxNDkwIiwidmlzaXRvcl9pZCI6IjYxMjE0ODgzNTMyODYzNjIyNTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 59cf11806be0b2327eaea3df2f4915d69af4d6fa568bdf0c7057c61a7f0c3c92 |
| hovercard-subject-tag | issue:20843486 |
| 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/2511/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d2a5ea085fe8f50158e5d7b516f31c0979d7aaad46a96855e5c013ddebfbec25/matplotlib/matplotlib/issues/2511 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d2a5ea085fe8f50158e5d7b516f31c0979d7aaad46a96855e5c013ddebfbec25/matplotlib/matplotlib/issues/2511 |
| og:image:alt | The NavigationToolbar saves the history of view limits in a stack. Each time the view is changed, the toolbar pushes the view limits for each axes onto the stack. Each time you go back it pops out ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tonysyu |
| 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