# -*- coding: utf-8 -*- """ Created on Mon Dec 14 13:47:45 2015 @author: md316445 """ import numpy as np import pylab as pb import time T=np.linspace(0,10,1000) Y = np.sin(T) pb.ion() x = [0,] y = [1,] fig = pb.figure() ax = fig.add_subplot(111) for i in range(1000): plot = ax.scatter(x, y) ax.set_xlim([0, 10]) ax.set_ylim([0, 10]) x[0] +=.1 fig.savefig('nnn{}.png'.format(i)) pb.draw() #time.sleep(0.01) ax.clear() pb.ioff()