Hi, I had a quick look at your code, and it seems jst fine. It even seems to run fine, at least the Mayavi part. The 'angle(z)' variable that you are passing in is only made of 0 and pi values, thus I am not surprised that the mesh shows only two colors. Maybe that's where the problem lies?
Cheers, Gael On Thu, Jun 09, 2011 at 03:00:36PM +0000, Gradinaru Vasile Catrinel wrote: > from numpy import real, imag, conj, abs, mgrid > x, y = mgrid[-2:2:0.05, -2:2:0.05] > u = x*exp(-0.25*x**2) > v = y*exp(-0.25*y**2) > z = u*v > surfCF(x, y, angle(z), abs(z)**2) ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ MayaVi-users mailing list MayaVi-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mayavi-users