/[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 637 by gross, Thu Mar 23 10:55:31 2006 UTC
# Line 2  Line 2 
2    
3    
4  # $Id: escript_scalarData2D.py,v 1.3 2006/01/03 08:46:20 paultcochrane Exp $  # $Id: escript_scalarData2D.py,v 1.3 2006/01/03 08:46:20 paultcochrane Exp $
5    """
6    @var __author__: name of author
7    @var __license__: licence agreement
8    @var __copyright__: copyrights
9    @var __url__: url entry point on documentation
10    @var __version__: version
11    @var __date__: date of the version
12    """
13    
14    __copyright__="""  Copyright (c) 2006 by ACcESS MNRF
15                        http://www.access.edu.au
16                    Primary Business: Queensland, Australia"""
17    __license__="""Licensed under the Open Software License version 3.0
18                 http://www.opensource.org/licenses/osl-3.0.php"""
19    __author__="Paul Cochrane"
20    __url__="http://www.iservo.edu.au/esys"
21    __version__="$Revision$"
22    __date__="$Date$"
23    
24  from esys.escript import *  from esys.escript import *
25  import esys.finley as fe  import esys.finley as fe
26    
27  import numarray  import numarray
28    
29  from esys.pyvisi import *  # from esys.pyvisi import *
30  from esys.pyvisi.renderers.vtk import *  from esys.pyvisi.renderers.vtk import *
31    
32  online=True  online=True
# Line 29  scene.save(fname="escript_scalarData2D_c Line 47  scene.save(fname="escript_scalarData2D_c
47    
48  scene = Scene()  scene = Scene()
49  plot = SurfacePlot(scene)  plot = SurfacePlot(scene)
50  plot.setData(scalarData2D)  plot.setData(-scalarData2D)
51    if online: scene.render(pause=True)
52    plot.setData(-scalarData2D)
53  if online: scene.render(pause=True)  if online: scene.render(pause=True)
54    
55  scene.save(fname="escript_scalarData2D_surfacePlot.png", format="png")  # scene.save(fname="escript_scalarData2D_surfacePlot.png", format="png")
56    
57  # add SurfacePlot, MeshPlot etc here  # add SurfacePlot, MeshPlot etc here
58    

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

  ViewVC Help
Powered by ViewVC 1.1.26