Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Animation was deleted without rendering anything #21007

Open
@OverLordGoldDragon

Description

@OverLordGoldDragon

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')

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp