Can't save matplotlib animation
You need to specify your path to ffmpeg
:
On linux I use:
import numpy as np
from matplotlib import pyplot as plt
from matplotlib import animation
plt.rcParams['animation.ffmpeg_path'] = '/usr/bin/ffmpeg'
You will obviously have to point to your windows .exe instead of '/usr/bin/ffmpeg'
If you don't have ffmpeg
installed, you can get it here
for some animation "anim" i use on windows:
plt.rcParams['animation.ffmpeg_path'] ='E:\\Media\\ffmpeg\\bin\\ffmpeg.exe'
FFwriter = animation.FFMpegWriter()
anim.save('basic_animation.mp4', writer = FFwriter, fps=30)
where path should be with \ \ and not with / or \ between folders