New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Animation error message #20909
Comments
I beleive you are running this as If that is the case, then you either need to call What is happening is that after you last line you make I suspect the action here is to make the waning message clearer about how you would go about using the animation object (either calling |
You have to output the animation. Either to screen ( |
@tacaswell I did not explicitly remove the documentation and Good first issue tags. It seems we've been simultaneously trying to tag and that confuses github |
The warning message here was tailored to the error case where the Animation object is not stored in a variable and immediately deleted after being created, e.g.
We can't distinguish between this case and the case of no show/save. So the error message would have to cover both. |
Thanks for your help and patience |
It worked, Thx |
Bug summary
once I executed my code by matplotlib.animation, The programe response this without any animation: D:\Program Files\Python\Python38\lib\site-packages\matplotlib\animation.py:973: UserWarning: Animation was deleted without rendering anything. This is most likely unintended. To prevent deletion, assign the Animation to a variable that exists for as long as you need the Animation.
Code for reproduction
Actual outcome
"D:\Program Files\Python\Python38\python.exe" "D:/pyCharm Project/Bar_chart_race/Barchart_race.py"
['2020/4/8', '2020/4/9', '2020/4/10', '2020/4/11', '2020/4/12']
3.4.3
D:\Program Files\Python\Python38\lib\site-packages\matplotlib\animation.py:973: UserWarning: Animation was deleted without rendering anything. This is most likely unintended. To prevent deletion, assign the Animation to a variable that exists for as long as you need the Animation.
Process finished with exit code 0
Expected outcome
a live plot
Operating system
Windows
Matplotlib Version
3.4.3
Matplotlib Backend
No response
Python version
3.8.10
Jupyter version
No response
Other libraries
No response
Installation
No response
Conda channel
No response
The text was updated successfully, but these errors were encountered: