~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to src/demo/solvers/heat/plot.py

  • Committer: Anders Logg
  • Date: 2007-01-10 09:04:44 UTC
  • mfrom: (1689.1.221 trunk)
  • Revision ID: logg@simula.no-20070110090444-ecyux3n1qnei4i8h
RemoveĀ oldĀ head

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Load mayavi
 
2
from mayavi import *
 
3
 
 
4
# Plot solution
 
5
v = mayavi()
 
6
d = v.open_vtk_xml("solution000000.vtu")
 
7
 
 
8
f = v.load_filter('WarpScalar', config=0) 
 
9
 
 
10
m = v.load_module("Axes")
 
11
m = v.load_module("BandedSurfaceMap")
 
12
#m.actor.GetProperty().SetColor((0.8, 0.8, 1.0))
 
13
 
 
14
camera = v.renwin.camera
 
15
camera.Zoom(0.7)
 
16
 
 
17
# Turn on sweeping
 
18
d.sweep_delay.set(0.01)
 
19
d.sweep_var.set(1)
 
20
d.do_sweep()
 
21
 
 
22
# Wait until window is closed
 
23
v.master.wait_window()