I am trying to save a matplotlib animation but i always get a FileNotFoundError.
import matplotlib.animation as animation
anim = animation.FuncAnimation(fig, plot_update, frames = vel, init_func = plot_init, blit = True)
writervideo = animation.FFMpegFileWriter(fps = 60)
#I have also tried the FFMpegWriter class
anim.save("MaxvellDistribution.mp4", writer = writervideo)
I have tried making a empty file with the same name and type, hoping that it would overwrite or at least find the file, but no. Even if i have made a file it cant find it.
Any help would be greatly appreciated!