Physics, Science, Programming, Deep Dives, Thoughts And Theory.
fig=plt.figure(figsize=(10,10*self.box_dim[1]/self.box_dim[0]),dpi=300) return fig We will use the Animation module in matplotlib to make the animation. To utilize that, we need to define a function that takes the iteration number (frame) as input and creates a plot. This function is then provided