Title: [Doc]: Axes limits not updated in animate decay · Issue #24296 · matplotlib/matplotlib · GitHub
Open Graph Title: [Doc]: Axes limits not updated in animate decay · Issue #24296 · matplotlib/matplotlib
X Title: [Doc]: Axes limits not updated in animate decay · Issue #24296 · matplotlib/matplotlib
Description: Documentation Link https://matplotlib.org/devdocs/gallery/animation/animate_decay.html#sphx-glr-gallery-animation-animate-decay-py Problem Animate decay claims it shows how to changing axes limits during an animation in the run method de...
Open Graph Description: Documentation Link https://matplotlib.org/devdocs/gallery/animation/animate_decay.html#sphx-glr-gallery-animation-animate-decay-py Problem Animate decay claims it shows how to changing axes limits ...
X Description: Documentation Link https://matplotlib.org/devdocs/gallery/animation/animate_decay.html#sphx-glr-gallery-animation-animate-decay-py Problem Animate decay claims it shows how to changing axes limits ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/24296
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Doc]: Axes limits not updated in animate decay","articleBody":"### Documentation Link\r\n\r\nhttps://matplotlib.org/devdocs/gallery/animation/animate_decay.html#sphx-glr-gallery-animation-animate-decay-py\r\n\r\n### Problem\r\n\r\nAnimate decay claims it shows how to `changing axes limits during an animation` in the run method\r\n\r\n``` python\r\ndef run(data):\r\n # update the data\r\n t, y = data\r\n xdata.append(t)\r\n ydata.append(y)\r\n xmin, xmax = ax.get_xlim()\r\n\r\n if t \u003e= xmax:\r\n ax.set_xlim(xmin, 2*xmax)\r\n ax.figure.canvas.draw()\r\n line.set_data(xdata, ydata)\r\n```\r\nbut the limits aren't actually changing:\r\n\r\nhttps://user-images.githubusercontent.com/1300499/198712225-68dc2c33-aa64-4ee3-8e82-b40d013f5e23.mp4\r\n\r\n\r\n\r\n### Suggested improvement\r\n\r\nEither option is fine with me:\r\n\r\n* fix code so xlims dynamically updated\r\n* remove lim updating code and statement saying this example shows how to update limits","author":{"url":"https://github.com/story645","@type":"Person","name":"story645"},"datePublished":"2022-10-28T19:01:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/24296/matplotlib/issues/24296"}
| 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:8f9e8ec6-c1a9-2dba-3ca6-aeb9d3f79afe |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AB28:1F14:2DD42DE:3F1E9C8:6A50A30E |
| html-safe-nonce | c4ba49df4347ce745cfb3ce5a214a34e47502265a51e12c5e80018d462f30544 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjI4OjFGMTQ6MkRENDJERTozRjFFOUM4OjZBNTBBMzBFIiwidmlzaXRvcl9pZCI6Ijg4OTQzODIxMTM2MTAwNDgyNzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 13228636a1aab1379a9aab61cb505537a78d7e32b6530142b3896504f1f3b5ac |
| hovercard-subject-tag | issue:1427694296 |
| 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/24296/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5a83f16ad4c5da511461640cf810b61849e5f9370fd930d2b0e7e02eb06b91c1/matplotlib/matplotlib/issues/24296 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5a83f16ad4c5da511461640cf810b61849e5f9370fd930d2b0e7e02eb06b91c1/matplotlib/matplotlib/issues/24296 |
| og:image:alt | Documentation Link https://matplotlib.org/devdocs/gallery/animation/animate_decay.html#sphx-glr-gallery-animation-animate-decay-py Problem Animate decay claims it shows how to changing axes limits ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | story645 |
| hostname | github.com |
| expected-hostname | github.com |
| None | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| 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 | 7ac0ad2f2c7e4b9056617355fd9e33e22b0c8df9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width