/usr/share/doc/python-scitools/examples/plot3_demo.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 | #!/usr/bin/env python
from scitools.std import *
setp(interactive=False)
t = linspace(0,10*pi,201)
plot3(sin(t),cos(t),t,title='A Helix')
show()
figure()
t = linspace(-5,5,501)
x = (2+t**2)*sin(10*t)
y = (2+t**2)*cos(10*t)
z = t
plot3(x,y,z)
grid('on')
xlabel('x(t)')
ylabel('y(t)')
zlabel('z(t)')
title('plot3 example')
show()
figure()
t = linspace(0,15*pi,301)
x = exp(-t/10)*cos(t)
y = exp(-t/10)*sin(t)
z = t
subplot(221); plot3(x,y,z)
subplot(222); plot3(x,y,z,view=2)
subplot(223); plot3(x,y,z,view=[90,90])
subplot(224); plot3(x,y,z,view=[90,0])
show()
raw_input('Press Return key to quit: ')
|