/usr/share/doc/python-scitools/examples/contourslice_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 | #!/usr/bin/env python
# Example taken from:
# http://www.mathworks.com/access/helpdesk/help/techdoc/ref/contourslice.html
from scitools.easyviz import *
from time import sleep
setp(show=False)
x, y, z, v = flow()
h = contourslice(x,y,z,v,seq(1,9),[],[0],linspace(-8,2,10))
axis([0,10,-3,3,-3,3])
daspect([1,1,1])
camva(24)
camproj('perspective')
campos([-3,-15,5])
ax = gca()
ax.setp(fgcolor=(1,1,1), bgcolor=(0,0,0))
box('on')
view(3) # because camva, camproj, and campos currently not working
setp(show=True)
show()
#hardcopy('tmp_contourslice1a.eps')
#hardcopy('tmp_contourslice1a.png')
figure()
# alternative syntax:
h = contourslice(x,y,z,v,seq(1,9),[],[0],linspace(-8,2,10),
axis=[0,10,-3,3,-3,3], daspect=[1,1,1],
camva=24, camproj='perspective', campos=[-3,-15,5],
fgcolor=(1,1,1), bgcolor=(0,0,0),
box='on')
#hardcopy('tmp_contourslice1b.eps')
#hardcopy('tmp_contourslice1b.png')
#sleep(3)
raw_input('Press Return key to quit: ')
|