Physics, Science, Programming, Deep Dives, Thoughts And Theory.
anim_hist=FuncAnimation(fig,self.plot_hist,frames=self.n_iters,interval=50,blit=False) #Save animation anim_hist.save(filename,writer="ffmpeg") Running the simulation It’s time to reap the rewards of our hard work. The effort spent in writing the code in an object-oriented fashion will pay off now,