pip install visvis
python
import visvis as vv
def animate(event):
t = vv.gca().GetTime()
phi = 2 * vv.pi * 2 * t
x = vv.cos(phi)
y = vv.sin(phi)
z = t
vv.surf(x, y, z, rstride=5, cstride=5)
if t > 5:
a.SetTimer(0)
a = vv.use('qt4')
f = vv.figure()
a.Timer('function', animate, 0.02, 1)
a.Run()