/usr/share/doc/python-pybiggles/examples/example7.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 | #!/usr/bin/env python
import sys
sys.path.insert(1,'..')
import biggles
import string
err_msg = """
This example needs the following data file:
http://biggles.sourceforge.net/data/continents
"""
try:
m = biggles.read_rows( "continents" )
except IOError:
print err_msg
sys.exit(-1)
p = biggles.HammerAitoffPlot()
p.ribs_l = 2
for i in range(len(m)/2):
l = m[2*i]
b = m[2*i+1]
p.add( biggles.Curve(l, b) )
#p.write_img( 400, 400, "example7.png" )
#p.write_eps( "example7.eps" )
p.show()
|