标签: python matplotlib
我遇到了代码运行速度降低的问题。这次,非常简单,可以进行调查。我只是显示一堆图像。
images = np.random.rand(200, 150, 150) for index, animage in enumerate(images): plt.imshow(animage) plt.title(str(index)) plt.pause(0.05)
启动速度非常快,然后缓慢地爬行。为什么会这样?
PS:我确实意识到动画是正确的制作方法。