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:
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import matplotlib.animation as animation
fig=plt.figure()
for infile in glob.glob('*.png'):
img=mpimg.imread(infile)
imgplot=plt.imshow(img)
im_list2.append([imgplot])
ani = animation.ArtistAnimation(fig, im_list2, interval=50, blit=True)
But when I try to save it like this:
ani.save('Animation1.mp4')
It returns an error:
WindowsError: [Error 2] The system could not find the given data.