/usr/share/doc/python-pybiggles/examples/example4.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 | #!/usr/bin/env python
import sys
sys.path.insert(1,'..')
import biggles
import math, numpy
x = numpy.arange( 0, 2*math.pi, math.pi/20 )
s = numpy.sin(x)
c = numpy.cos(x)
inset = biggles.FramedPlot()
inset.title = "inset"
inset.frame.draw_ticks = 0
inset.add( biggles.Curve(x, s, type="dashed") )
p = biggles.FramedPlot()
p.aspect_ratio = 1.
p.frame.tickdir = +1
p.frame.draw_spine = 0
p.add( biggles.SymmetricErrorBarsY(x, s, [0.2]*len(x)) )
p.add( biggles.Points(x, s, color="red") )
p.add( biggles.Inset((.6,.6), (.95,.95), inset) )
#p.write_img( 400, 400, "example4.png" )
#p.write_eps( "example4.eps" )
p.show()
|