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

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

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

revision 1209 by jongui, Thu Jun 21 23:17:16 2007 UTC revision 1210 by jongui, Tue Jul 3 05:47:34 2007 UTC
# Line 14  X_SIZE = 500 Line 14  X_SIZE = 500
14  Y_SIZE = 500  Y_SIZE = 500
15    
16  FILE_NAME = "phi_talus_lava.0099.vtu"  FILE_NAME = "phi_talus_lava.0099.vtu"
   
17  IMAGE_NAME = "legend.jpg"  IMAGE_NAME = "legend.jpg"
18  JPG_RENDERER = Renderer.ONLINE_JPG  JPG_RENDERER = Renderer.ONLINE_JPG
19    
# Line 45  lg1.setPosition(LocalPosition(50, 5)) Line 44  lg1.setPosition(LocalPosition(50, 5))
44  # Create a Camera.  # Create a Camera.
45  cam1 = Camera(scene = s, viewport = Viewport.SOUTH_WEST)  cam1 = Camera(scene = s, viewport = Viewport.SOUTH_WEST)
46    
47  # Read in one file one after another and render the object.  # Render the object.
48  s.render(image_name = os.path.join(PYVISI_EXAMPLE_IMAGES_PATH,  s.render(image_name = os.path.join(PYVISI_EXAMPLE_IMAGES_PATH,
49          IMAGE_NAME))          IMAGE_NAME))

Legend:
Removed from v.1209  
changed lines
  Added in v.1210

  ViewVC Help
Powered by ViewVC 1.1.26