/[escript]/trunk/pyvisi/py_src/examples/contour.py
ViewVC logotype

Diff of /trunk/pyvisi/py_src/examples/contour.py

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

revision 987 by jongui, Tue Feb 13 02:03:23 2007 UTC revision 988 by jongui, Tue Feb 20 07:21:12 2007 UTC
# Line 6  s = Scene(renderer = Renderer.ONLINE, nu Line 6  s = Scene(renderer = Renderer.ONLINE, nu
6    
7  dc1 = DataCollector(source = Source.XML)  dc1 = DataCollector(source = Source.XML)
8  dc1.setFileName(file_name =  dc1.setFileName(file_name =
9          "/home/jongui/data/laurent/subduction/source/function.0271.vtk")          #"/home/jongui/data/laurent/subduction/source/function.0271.vtk")
10            "/home/jongui/trunk/pyvisi/test/python/data_data/interior_3D.xml")
11    
12  # Create one contour instance.  # Create one contour instance.
13  ctr1 = Contour(scene = s, data_collector = dc1, scalar = None,  ctr1 = Contour(scene = s, data_collector = dc1, scalar = "temperature_cell",
14          viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True)          viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True)
15  ctr1.generateContours(1, 0.5, 0.5)  ctr1.generateContours(1, 0.5, 0.5)
16    

Legend:
Removed from v.987  
changed lines
  Added in v.988

  ViewVC Help
Powered by ViewVC 1.1.26