add UnicodeEngine (MultiEngineText and axis texters returning MultiEngineText), texte...
[PyX.git] / examples / bargraphs / errors.py
blobcc5ca2b412b6ae7200542124bff536363c59c04b
1 from random import random
2 from pyx import *
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")