/[escript]/trunk/doc/examples/pyvisi/poisson_with_pyvisi.py
ViewVC logotype

Diff of /trunk/doc/examples/pyvisi/poisson_with_pyvisi.py

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

revision 1147 by ksteube, Wed May 16 06:39:11 2007 UTC revision 1148 by jongui, Wed May 16 22:45:33 2007 UTC
# Line 4  from esys.escript.linearPDEs import Pois Line 4  from esys.escript.linearPDEs import Pois
4  from esys.finley import Rectangle  from esys.finley import Rectangle
5  from esys.pyvisi import Scene, DataCollector, Map, Camera  from esys.pyvisi import Scene, DataCollector, Map, Camera
6  from esys.pyvisi.constant import *  from esys.pyvisi.constant import *
7    import os
8    
9  PYVISI_EXAMPLE_IMAGES_PATH = "data_sample_images/"  PYVISI_EXAMPLE_IMAGES_PATH = "data_sample_images"
10  X_SIZE = 400  X_SIZE = 400
11  Y_SIZE = 300  Y_SIZE = 300
12  JPG_RENDERER = Renderer.ONLINE_JPG  JPG_RENDERER = Renderer.ONLINE_JPG
# Line 32  Map(scene = s, data_collector = dc, view Line 33  Map(scene = s, data_collector = dc, view
33        lut = Lut.COLOR, cell_to_point = False, outline = True)        lut = Lut.COLOR, cell_to_point = False, outline = True)
34    
35  # Create a Camera.  # Create a Camera.
36  c = Camera(scene = s, data_collector = dc, viewport = Viewport.SOUTH_WEST)  c = Camera(scene = s, viewport = Viewport.SOUTH_WEST)
37    
38  # Render the object.  # Render the object.
39  s.render(image_name = PYVISI_EXAMPLE_IMAGES_PATH + "poisson.jpg")  s.render(image_name = os.path.join(PYVISI_EXAMPLE_IMAGES_PATH, "poisson.jpg"))

Legend:
Removed from v.1147  
changed lines
  Added in v.1148

  ViewVC Help
Powered by ViewVC 1.1.26