Physics, Science, Programming, Deep Dives, Thoughts And Theory.
plt.hist(self.v_dynamics[:,i],density=True,color="plum",edgecolor="black") #Define axis limits plt.xlim([0,3]) plt.ylim([0,3]) def make_velocity_histogram_animation(self,filename="KTG_histogram.mp4"): #Create empty figure fig=plt.figure(figsize=(5,5),dpi=500) #Create animation