Save animations to file. plt.clf() deleted because it causes additional windows to pop up.