OPlot-like function

Any help would be appreciated,

http://www.scipy.org/Cookbook/Matplotlib/Animations