Attachment 'simple_tvtk_surface.py'
Download
1 from enthought.tvtk.tools import mlab
2 from Numeric import arange, cos, sqrt
3
4 gui = mlab.GUI()
5 fig = mlab.figure()
6 x = arange(-5.0, 5.0, 0.2)
7 y = arange(-5.0, 5.0, 0.2)
8
9 def fct(x, y):
10 return cos( sqrt(x**2+y**2))
11
12 s = mlab.SurfRegular(x, y , fct)
13 fig.add(s)
14 gui.start_event_loop()
New Attachment
Attached Files
To refer to attachments on a page, use
attachment:filename, as shown below in the list of files. Do
NOT use the URL of the
[get] link, since this is subject to change and can break easily.
- [get | view] (2006-02-17 10:55:37, 0.3 KB) [[attachment:simple_tvtk_surface.py]]