/usr/share/doc/python-pybiggles/examples/example6.py is in python-pybiggles 1.6.6-3.
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 | #!/usr/bin/env python
import sys
sys.path.insert(1,'..')
import biggles
import numpy, math
x = numpy.arange( 1*math.pi, 3*math.pi, math.pi/30 )
c = numpy.cos(x)
s = numpy.sin(x)
p = biggles.FramedPlot()
p.aspect_ratio = 1
p.frame1.draw_grid = 1
p.frame1.tickdir = 1
p.x1.label = "bottom"
p.x1.subticks = 1
p.y1.label = "left"
p.y1.draw_spine = 0
p.x2.label = "top"
p.x2.range = 10, 1000
p.x2.log = 1
p.y2.label = "right"
p.y2.draw_ticks = 0
p.y2.ticklabels = [ "-1", "-1/2", "0", "1/2", "1" ]
p.add( biggles.Curve(x, c, type='dash') )
p.add( biggles.Curve(x, s) )
#p.write_img( 400, 400, "example6.png" )
#p.write_eps( "example6.eps" )
p.show()
|