This is an archival dump of old wiki content --- see scipy.org for current material

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

File to upload
Rename to
Overwrite existing attachment of same name

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.