Hi guys,
I have a simpler example.
Check this:
import numpy as np
import enthought.mayavi.mlab as mlab
def f(x, y):
return 1/x + y
x, y = np.mgrid[0.1:3:0.1, -2.:2.:0.01]
s = mlab.surf(x, y, f)
Pretty much if you try to plot 1/x alone it doesn't work. No surface
whatsoever appear in the window.
I started also from 0.1 so there is no -Inf value.
Is this expected or not? The surf methos can't be used with 1/x form?
Cheers,
Michele.
On Tue, Jan 26, 2010 at 1:09 PM, Gael Varoquaux
<[email protected]> wrote:
> On Tue, Jan 26, 2010 at 01:06:48PM +0000, Michele Mattioni wrote:
>> Hi guys,
>
>> I was wondering what is the strategy adopted by Mayavi when has to
>> render an -Inf value.
>> I don't know if that's the problem, but I can't see anything on the window.
>
> Non finite values will appear as holes when using surf, as the
> points are deleted by the WarpScalar filter, if I remember correctly. You
> should try on a simple example to check.
>
> Gaƫl
>
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
MayaVi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users