set_zlim([0, 1]) fig.savefig('upwind2d/frame_'+"%03d" % nframe+'.png') nframe += 1 # To generate GIF: convert frame_* GaussianUpwind2D.gif I, the copyright holder...