Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Open
Labels
Description
Irregular warning, sometimes prints sometimes not without changing anything in code. Didn't occur in3.3.4
. It's also thrown after running an entirely different cell or file, if not restarting kernel first.
conda install --conda-forge matplotlib 3.4.3
, backendmodule://ipykernel.pylab.backend_inline
(Spyder), Windows 10, Python 3.7.9
D:\Anaconda\envs\pyt\lib\site-packages\matplotlib\animation.py:974: 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. 'Animation was deleted without rendering anything. This is '
importmatplotlib.pyplotaspltimportmatplotlib.animationasanimationclassAnimation(animation.TimedAnimation):def__init__(self):fig=plt.figure()fig.add_subplot(2,2,1)animation.TimedAnimation.__init__(self,fig,blit=True)def_draw_frame(self,frame_idx):passdefnew_frame_seq(self):returniter(range(2))ani=Animation()ani.save('test.mp4')