A faster refresh rate with plt.imshow
问题 I'd like to display some images while doing a numpy computation: import numpy as np import matplotlib.pyplot as plt plt.ion() # Turn the interactive mode on. for i in range(100): A = np.random.randn(10,10) plt.imshow(A) plt.pause(0.001) # do some other numpy computations here (they take < 1 ms) Instead of displaying the images quickly, it is rather slow . I'm not asking for 100 frames per second, but I thought 30 fps would be possible, but it's not: after a few iterations, I'm close to 2 fps