Matplotlib Animation Charts in Python using Celluloid

preview_player
Показать описание


Related video:

Рекомендации по теме
Комментарии
Автор

This video was really helpful. Thank you so much!

josediogosimoes
Автор

Hi.... your video is helpful but I cannot save my can you tell me why?

from matplotlib import pyplot as plt
from celluloid import Camera

fig = plt.figure()#create a figure
camera = Camera(fig)#set up the camera

for i in range(10):
plt.plot([i] * 10)#make another point
plt.show()
camera.snap()#take a picture
print("done1")
animation = camera.animate()
print("done2")
animation.save('test_animation.mp4', writer=PillowWriter)

melanietu
Автор

Thank you. This was very helpful. Is there a way to change the speed of the animation?

danhartpatterson