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

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

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

revision 605 by gross, Mon Mar 20 07:16:27 2006 UTC revision 606 by gross, Mon Mar 20 23:34:00 2006 UTC
# Line 8  import esys.finley as fe Line 8  import esys.finley as fe
8    
9  import numarray  import numarray
10    
11  from esys.pyvisi import *  # from esys.pyvisi import *
12  from esys.pyvisi.renderers.vtk import *  from esys.pyvisi.renderers.vtk import *
13    
14  online=True  online=True
# Line 29  scene.save(fname="escript_scalarData2D_c Line 29  scene.save(fname="escript_scalarData2D_c
29    
30  scene = Scene()  scene = Scene()
31  plot = SurfacePlot(scene)  plot = SurfacePlot(scene)
32  plot.setData(scalarData2D)  plot.setData(-scalarData2D)
33    if online: scene.render(pause=True)
34    plot.setData(-scalarData2D)
35  if online: scene.render(pause=True)  if online: scene.render(pause=True)
36    
37  scene.save(fname="escript_scalarData2D_surfacePlot.png", format="png")  # scene.save(fname="escript_scalarData2D_surfacePlot.png", format="png")
38    
39  # add SurfacePlot, MeshPlot etc here  # add SurfacePlot, MeshPlot etc here
40    

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

  ViewVC Help
Powered by ViewVC 1.1.26