[SciPy-user] displaying spherical harmonics with different resolution...

fred fredmfp at gmail.com
Wed Jan 24 07:31:33 CST 2007


Hi all,

I'm playing with mayavi2 to display spherical harmonics,
which works fine, thanks to scipy (I use 0.5.1 on debian etch).

However, I have noticed a "strange" behaviour if I change theta & phi
resolution.

If I set

dphi, dtheta = pi/66, pi/66
[phi, theta] = mgrid[0:2*pi+dphi:dphi, 0:pi+dtheta:dtheta]

display is fine:
http://fredantispam.free.fr/Y_7_3_a.png

If I use nicer mesh, say

dphi, dtheta = pi/180, pi/180
[phi, theta] = mgrid[0:2*pi+dphi:dphi, 0:pi+dtheta:dtheta]

display is obviously wrong
http://fredantispam.free.fr/Y_7_3_b.png

What's wrong ?

Thanks in advance.

Cheers,

-- 
http://scipy.org/FredericPetit


More information about the SciPy-user mailing list