~ubuntu-branches/ubuntu/hardy/mayavi2/hardy-backports

« back to all changes in this revision

Viewing changes to enthought.mayavi/examples/unstructured_grid.py

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2008-07-25 09:03:34 UTC
  • mfrom: (2.2.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080725090334-1hbb9fn8b3as5qy0
Tags: 2.2.0-1~hardy1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
  $ mayavi2 -x unstructured_grid.py
6
6
 
 
7
Alternatively, it can be run as:
 
8
 
 
9
  $ python unstructured_grid.py
 
10
  
7
11
Author: Prabhu Ramachandran <prabhu at aero dot iitb dot ac dot in>
8
12
 
9
13
Copyright (c) 2007, Enthought, Inc.
10
14
License: BSD style.
11
15
"""
12
16
 
 
17
# The following *optional* two lines allow a user to call this script
 
18
# as either `python script.py` or `mayavi2 script.py`.  These two
 
19
# lines must be placed before any other mayavi imports.
 
20
from enthought.mayavi.scripts import mayavi2
 
21
mayavi2.standalone(globals())
 
22
 
13
23
from numpy import array, arange, random
14
24
from enthought.tvtk.api import tvtk
15
25