/usr/share/doc/python-scitools/examples/isosurface_demo1.py is in python-scitools 0.9.0-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | #!/usr/bin/env python
# Examples taken from:
# http://www.mathworks.com/access/helpdesk/help/techdoc/ref/isosurface.html and
# http://www.mathworks.com/access/helpdesk/help/techdoc/visualize/f5-3653.html
from scitools.easyviz import *
from time import sleep
setp(interactive=False)
x, y, z, v = flow()
h = isosurface(x,y,z,v,-3)
#setp(h,'FaceColor','red','EdgeColor','none');
h.setp(opacity=0.5)
shading('interp')
daspect([1,1,1])
view(3)
axis('tight')
#camlight()
#lighting('gouraud')
show()
#hardcopy('tmp_isosurf1a.eps')
#hardcopy('tmp_isosurf1a_lq.eps', vector_file=False)
#hardcopy('tmp_isosurf1a.png')
figure()
h = isosurface(x,y,z,v,0)
#setp(hpatch,'FaceColor','red','EdgeColor','none')
shading('interp')
daspect([1,4,4])
view([-65,20])
axis('tight')
#camlight('left')
#setp(gcf,'Renderer','zbuffer');
#lighting('phong')
show()
#sleep(3)
raw_input('Press Return key to quit: ')
#hardcopy('tmp_isosurf1b.eps')
#hardcopy('tmp_isosurf1b_lq.eps', vector_file=False)
#hardcopy('tmp_isosurf1b.png')
|