/[escript]/trunk/pyvisi/examples/arrowPlot2D.py
ViewVC logotype

Diff of /trunk/pyvisi/examples/arrowPlot2D.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 604 by cochrane, Mon Dec 12 01:57:07 2005 UTC revision 605 by gross, Mon Mar 20 07:16:27 2006 UTC
# Line 39  for i in range(dim): Line 39  for i in range(dim):
39          dy[i,j] = (random.random()-0.5)/5.0          dy[i,j] = (random.random()-0.5)/5.0
40    
41  # example code for how a user would write a script in pyvisi  # example code for how a user would write a script in pyvisi
42  from pyvisi import *          # base level visualisation stuff  from esys.pyvisi import *          # base level visualisation stuff
 #from pyvisi.utils import *   # pyvisi specific utils  
43  # import the objects to render the scene using the specific renderer  # import the objects to render the scene using the specific renderer
44  if ren_mod == "vtk":  if ren_mod == "vtk":
45      from pyvisi.renderers.vtk import *      from esys.pyvisi.renderers.vtk import *
46  elif ren_mod == "gnuplot":  elif ren_mod == "gnuplot":
47      from pyvisi.renderers.gnuplot import *      from esys.pyvisi.renderers.gnuplot import *
48  else:  else:
49      raise ValueError, "Unknown renderer module"      raise ValueError, "Unknown renderer module"
50    

Legend:
Removed from v.604  
changed lines
  Added in v.605

  ViewVC Help
Powered by ViewVC 1.1.26