Hi,

having only 0 and pi is just what I wanted: a simple example allows me to find 
faster the bugs...
Since the v in the hsv scheme is constant (hue-saturation-value) we see the 
jump.
Having the v set by the (squared) absolute value of z=f(x,y) would allow the 
points near to 0 to be darker
and maybe to not allow the eyes to realize too much of the jump.

Do you know if there is an efficient way to plot only the points with their 
associated colors
(each point comes with its own color)?
   
Vasile
________________________________________
From: Gael Varoquaux [gael.varoqu...@normalesup.org]
Sent: Friday, June 10, 2011 9:01 AM
To: Gradinaru  Vasile Catrinel
Cc: enthought-...@enthought.com; mayavi-users@lists.sourceforge.net
Subject: Re:  [MayaVi-users] [Enthought-Dev] complex valued function with 
"QM-standard" color convention?

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

Reply via email to