/usr/share/doc/python-scitools/examples/plot1b.py is in python-scitools 0.9.0-1.
This file is owned by root:root, with mode 0o644.
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 | from scitools.std import * # for curve plotting
def f(t):
return t**2*exp(-t**2)
t = linspace(0, 3, 51) # 51 points between 0 and 3
y = f(t)
plot(t, y)
xlabel('t')
ylabel('y')
legend('t^2*exp(-t^2)')
axis([0, 3, -0.05, 0.6]) # t in [0,3], y in [-0.05,0.6]
title('My First Easyviz Demo')
savefig('tmp1.eps') # save figure to file (PostScript)
raw_input('Press Return key to quit: ')
|