How Can I Save Animation.Artist animation?

前端 未结 1 1986
一整个雨季
一整个雨季 2021-01-24 23:15

I have a problem:

My program is working well but when I try to save the animation that I plot, The compiler responds with an error.

The Code:

imp         


        
相关标签:
1条回答
  • 2021-01-24 23:32

    I think you are with the same problem I had few days ago: here is the question I posted!

    I solved my problem by changing line 163 from C:\Python27\Lib\site-packages\matplotlib\animation.py from

    proc = Popen(command, shell=False, stdout=PIPE, stderr=PIPE)
    

    to

    proc = Popen(command, shell=True, stdout=PIPE, stderr=PIPE)
    

    ...However, I am not sure how "safe" is this change in the animation.py file! See more info here.

    0 讨论(0)
提交回复
热议问题