1 | initial version |
I don't think that you can interactively rotate with mplot3d. I'm not an expert anyway. I would say that mayavi2 experimental package fits your bill anyway. I use mayavi2 (outside of Sage) to produce antenna patterns of high quality and works beautifully.
I guess you should proceed as follows:
1) Install mayavi2 package following the instruction at this page http://www.sagemath.org/doc/numerical_sage/installation_linux.html
2) You invoke mayavi2 with something like this (http://www.sagemath.org/doc/numerical_sage/plotting.html)
import numpy
from mayavi.tools import imv
x=numpy.arange(-8,8,.2)
def f(x,y):
r=numpy.sqrt(x**2+y**2)+.01
return numpy.sin(r)/r
imv.surf(x,x,f)
3) The command you want is mesh(). Read the documentation and the examples here and here
hope it helps.
Giovanni