line.set_xdata([1, 2, 3])
line.set_ydata([1, 2, 3])
pylab.draw()
time.sleep(6)
line1, = pylab.plot([4], [5], 'g*', markersize=8)
pylab.draw()
for i in range(10):
    line.set_xdata([1, 2, 3])
line.set_ydata([1, 2, 3])
pylab.draw()
time.sleep(1)
print('done up there')
line2, = pylab.plot(3, 2, 'b^', markersize=6)
pylab.draw()
time.sleep(20)
Basic Animation with matplotlib's pyplot