1 from random
import random
4 g
= graph
.graphxy(width
=8, x
=graph
.axis
.bar())
5 g
.plot(graph
.data
.file("minimal.dat", xname
=0, y
=2, stack
=3,
6 dy
="1+random()", dstack
="1+random()",
7 context
={"random": random
}),
8 [graph
.style
.errorbar(),
9 graph
.style
.stackedbarpos("stack"),
10 graph
.style
.bar([color
.rgb
.green
]),
11 graph
.style
.range({"y": "stack"}),
12 graph
.style
.errorbar()])
13 g
.writeEPSfile("errors")
14 g
.writePDFfile("errors")
15 g
.writeSVGfile("errors")