Ask Your Question

Revision history [back]

click to hide/show revision 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

2) You invoke mayavi2 with something like this (

import numpy
from import imv
def f(x,y):
    return numpy.sin(r)/r,x,f)

3) The command you want is mesh(). Read the documentation and the examples here and here

hope it helps.