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

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

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

revision 604 by cochrane, Fri Jan 6 01:54:48 2006 UTC revision 605 by gross, Mon Mar 20 07:16:27 2006 UTC
# Line 8  from esys import bruce Line 8  from esys import bruce
8    
9  import numarray  import numarray
10    
11  from pyvisi import *  from esys.pyvisi import *
12  from pyvisi.renderers.vtk import *  from esys.pyvisi.renderers.vtk import *
13    
14    online=False
15    
16  tensorDomain = bruce.Rectangle(9,9,10,10)  tensorDomain = bruce.Rectangle(9,9,10,10)
17  tensorFunctionSpace=escript.ContinuousFunction(tensorDomain)  tensorFunctionSpace=escript.ContinuousFunction(tensorDomain)
# Line 21  threeByThreeTensorData2D = Data(tensorDa Line 23  threeByThreeTensorData2D = Data(tensorDa
23  scene = Scene()  scene = Scene()
24  plot = EllipsoidPlot(scene)  plot = EllipsoidPlot(scene)
25  plot.setData(threeByThreeTensorData2D)  plot.setData(threeByThreeTensorData2D)
26  scene.render(pause=True)  if online: scene.render(pause=True)
27    
28  scene.save(fname="escript_threeByThreeTensorData2D_ellipsoidPlot.png",  scene.save(fname="escript_threeByThreeTensorData2D_ellipsoidPlot.png",
29      format="png")      format="png")

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

  ViewVC Help
Powered by ViewVC 1.1.26