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

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

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

revision 337 by cochrane, Mon Dec 12 01:57:07 2005 UTC revision 605 by gross, Mon Mar 20 07:16:27 2006 UTC
# Line 18  x = arange(0,2*pi,0.1, typecode=Float) Line 18  x = arange(0,2*pi,0.1, typecode=Float)
18  y = sin(x)  y = sin(x)
19    
20  # example code for how a user would write a script in pyvisi  # example code for how a user would write a script in pyvisi
21  from pyvisi import *          # base level visualisation stuff  from esys.pyvisi import *          # base level visualisation stuff
22  # import the objects to render the scene using the specific renderer  # import the objects to render the scene using the specific renderer
23  if ren_mod == "gnuplot":  if ren_mod == "gnuplot":
24      from pyvisi.renderers.gnuplot import *   # gnuplot      from esys.pyvisi.renderers.gnuplot import *   # gnuplot
25  elif ren_mod == "vtk":  elif ren_mod == "vtk":
26      from pyvisi.renderers.vtk import *       # vtk      from esys.pyvisi.renderers.vtk import *       # vtk
27  elif ren_mod == "plplot":  elif ren_mod == "plplot":
28      from pyvisi.renderers.plplot import *    # plplot      from esys.pyvisi.renderers.plplot import *    # plplot
29  else:  else:
30      raise ValueError, "Unknown renderer module"      raise ValueError, "Unknown renderer module"
31    

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

  ViewVC Help
Powered by ViewVC 1.1.26