/usr/share/doc/python-scitools/examples/subplot_demo2.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 | #!/usr/bin/env python
"""
Example on how to work with references to objects and the setp command.
"""
from scitools.std import *
setp(interactive=False)
x = linspace(0,2*pi,31)
a1 = subplot(211)
l1 = plot(x,sin(x),'x')
a2 = subplot(212)
l2 = plot(x,cos(x)*sin(x))
show()
raw_input('Press Return key to continue')
setp(a1,box='off',grid='on')
setp(l1,linemarker='<')
show()
raw_input('Press Return key to continue')
setp(a2,xmin=pi/2,xmax=2*pi)
setp(a2,fontsize=12)
setp(a2,log='x')
setp(l2,linewidth=4,linecolor='g')
show()
raw_input('Press Return key to quit')
|