prepare manual for rest conversion
[PyX/mjg.git] / examples / bargraphs / stacked.py
blob8653309912b1b0808893c7e2bdf8878a8a967060
1 from pyx import *
3 g = graph.graphxy(width=14, height=6, x=graph.axis.bar())
4 g.plot(graph.data.file("minimal.dat", xname=0, y=2, stack=3),
5 [graph.style.bar(),
6 graph.style.text("y"),
7 graph.style.stackedbarpos("stack"),
8 graph.style.bar([color.rgb.green]),
9 graph.style.text("stack")])
10 g.writeEPSfile("stacked")
11 g.writePDFfile("stacked")