Title: [Bug]: AttributeError: 'TimedAnimation' object has no attribute '_framedata' · Issue #30831 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: AttributeError: 'TimedAnimation' object has no attribute '_framedata' · Issue #30831 · matplotlib/matplotlib
X Title: [Bug]: AttributeError: 'TimedAnimation' object has no attribute '_framedata' · Issue #30831 · matplotlib/matplotlib
Description: Bug summary Hi, I try to use TimedAnimation class to manage a figure which should plot some sensor data sent in synchronized way, but an AttributeError occurs and I see that in the documentation there is no "_framedata" parameter to set....
Open Graph Description: Bug summary Hi, I try to use TimedAnimation class to manage a figure which should plot some sensor data sent in synchronized way, but an AttributeError occurs and I see that in the documentation th...
X Description: Bug summary Hi, I try to use TimedAnimation class to manage a figure which should plot some sensor data sent in synchronized way, but an AttributeError occurs and I see that in the documentation th...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/30831
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: AttributeError: 'TimedAnimation' object has no attribute '_framedata'","articleBody":"### Bug summary\n\nHi,\n\nI try to use TimedAnimation class to manage a figure which should plot some sensor data sent in synchronized way, but an AttributeError occurs and I see that in the documentation there is no \"_framedata\" parameter to set.\n\n### Code for reproduction\n\n```Python\n# The code I try to run is this one\n\n# Matplotlib config\nfig, ax = plt.subplots()\nax.grid()\nax.relim() # recompute the ax.dataLim\nax.autoscale_view() # update ax.viewLim using the new dataLim\nline, = ax.plot([], [], lw=2)\n\nxdata, ydata = [0], [0]\ndel xdata[:]\ndel ydata[:]\nline.set_data(xdata, ydata)\n\nt = itertools.count(start=0)\nplt.pause(3)\n\n# The errors occurs after in the TimedAnimation\nani_t = animation.TimedAnimation(fig, interval=10, repeat=True, blit=True)\n\n# This line will be not executed\nplt.show(block=False)\n```\n\n### Actual outcome\n\n```\nTraceback (most recent call last):\n File \"file.py\", line 337, in \u003cmodule\u003e\n ani_t = animation.TimedAnimation(fig, interval=10, repeat=True, blit=True)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"venv/lib/python3.12/site-packages/matplotlib/animation.py\", line 1440, in __init__\n super().__init__(fig, event_source=event_source, *args, **kwargs)\n File \"venv/lib/python3.12/site-packages/matplotlib/animation.py\", line 892, in __init__\n self.frame_seq = self.new_frame_seq()\n ^^^^^^^^^^^^^^^^^^^^\n File \"venv/lib/python3.12/site-packages/matplotlib/animation.py\", line 1146, in new_frame_seq\n return iter(self._framedata)\n ^^^^^^^^^^^^^^^\nAttributeError: 'TimedAnimation' object has no attribute '_framedata'\nvenv/lib/python3.12/site-packages/matplotlib/animation.py:908: UserWarning: Animation was deleted without rendering anything. This is most likely not intended. To prevent deletion, assign the Animation to a variable, e.g. `anim`, that exists until you output the Animation using `plt.show()` or `anim.save()`.\n```\n\n### Expected outcome\n\nI expect to plot log data each 10 milliseconds\n\n### Additional information\n\n_No response_\n\n### Operating system\n\n_No response_\n\n### Matplotlib Version\n\n3.10.7\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\npip","author":{"url":"https://github.com/J0hn3ch","@type":"Person","name":"J0hn3ch"},"datePublished":"2025-12-10T10:49:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/30831/matplotlib/issues/30831"}
| 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:34ba7739-2ee1-6908-ad6f-993f26fa2ac9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AC94:31E744:184288:20DDAB:6A51D31B |
| html-safe-nonce | ed2b62a8b36bce7260608d6a44eb13c9ed075e4549fba392b682b39f6a4018b1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzk0OjMxRTc0NDoxODQyODg6MjBEREFCOjZBNTFEMzFCIiwidmlzaXRvcl9pZCI6Ijc5ODc3OTIxMDYwMDg3MjgzNDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 903404114df624a0ec44058cd284e18aeff0b7ca3419691b64e4fa5abb1f556d |
| hovercard-subject-tag | issue:3714659558 |
| 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/30831/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fecdabc99ffbf99199a62981be44147caf60c40c8d5c79c04e9dd90200860328/matplotlib/matplotlib/issues/30831 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fecdabc99ffbf99199a62981be44147caf60c40c8d5c79c04e9dd90200860328/matplotlib/matplotlib/issues/30831 |
| og:image:alt | Bug summary Hi, I try to use TimedAnimation class to manage a figure which should plot some sensor data sent in synchronized way, but an AttributeError occurs and I see that in the documentation th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | J0hn3ch |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width