10
module_dir = "@MODULE_DIR@"
12
if module_dir[0] == '@':
13
module_dir = os.getcwd ()
15
sys.path.insert (0, module_dir)
19
# Does a simple bar chart, using color fill. If color fill is
20
# unavailable, pattern fill is used instead (automatic).
24
## # Parse and process command line arguments
26
## pl.ParseOpts(sys.argv, pl.PARSE_FULL)
28
## # Initialize plplot
34
w.plwind(1980.0, 1990.0, 0.0, 35.0)
35
w.plbox("bc", 1.0, 0, "bcnv", 10.0, 0)
37
w.pllab("Year", "Widget Sales (millions)", "#frPLplot Example 12")
39
y0 = [5, 15, 12, 24, 28, 30, 20, 8, 12, 3]
44
fbox( w, (1980. + i), y0[i] )
46
w.plptex((1980. + i + .5), (y0[i] + 1.), 1.0, 0.0, .5, string)
48
w.plmtex("b", 1.0, ((i + 1) * .1 - .05), 0.5, string)
50
# Don't forget to call PLEND to finish off!
54
def fbox( w, x0, y0 ):
56
x = [x0, x0, x0 + 1., x0 + 1.]