If the function does not exist in the domain it will not be displayed. However I found out that if I set an interval close to zero the function is displayed, but in a weird zoom. I need to zoom quite a lot before I can see that.
Anyway this issue is resolved. Thanks, Michele On Tue, Jan 26, 2010 at 8:54 PM, Gael Varoquaux <[email protected]> wrote: > On Tue, Jan 26, 2010 at 08:15:04PM +0000, Michele Mattioni wrote: >> 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. > > Works for me. I am not sure where the problem might be. Can you try > having an array with no Infs. > > 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
