plt.plot((frames**2).max(axis=1).max(axis=1),label="max(Im)") #plt.plot(np.cumsum(frames.max(axis=1).max(axis=1))/(1+np.arange(frames.shape[0]))) ...