我实现了一个适合您需求的便捷脚本。在这里尝试
例如:
imagelist = YOUR-IMAGE-LISTdef redraw_fn(f, axes): img = imagelist[f] if not redraw_fn.initialized: redraw_fn.im = axes.imshow(img, animated=True) redraw_fn.initialized = True else: redraw_fn.im.set_array(img)redraw_fn.initialized = Falsevideofig(len(imagelist), redraw_fn, play_fps=30)



