/usr/share/doc/python-scitools/examples/fill_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 | #!/usr/bin/env python
"""Examples taken from fill_demo.py and fill_demo2.py in Matplotlib."""
from scitools.std import *
t = linspace(0.0, 1.0, 101)
s = sin(2*2*pi*t)
fill(t, s*exp(-5*t), 'r', grid=True)
figure()
t = linspace(0.0,3.0,301)
s = sin(2*pi*t)
c = sin(4*pi*t)
fill(t, s, 'b', t, c, 'g', opacity=0.2)
raw_input('Press Return key to quit: ')
legend('domain1', 'domain2')
clf()
plot(t,s,legend='a')
plot(t,s+2,legend='b')
|