#NEWLINE# @ animate #NEWLINE# def test_simple_surf_anim( obj = None ) : #NEWLINE# #INDENT# 'Test Surf with a simple collection of points and animate it.' #NEWLINE# obj = ( obj if ( obj is not None ) else test_simple_surf ( ) ) #NEWLINE# ms = obj . mlab_source #NEWLINE# x = obj . x #NEWLINE# for i in range ( 10 ) : #NEWLINE# #INDENT# ms . scalars = numpy . asarray ( ( ( x * 0.1 ) * ( i + 1 ) ) , 'd' ) #NEWLINE# ( yield )