update upload data
[PyX.git] / examples / 3dgraphs / bar.py
blobae130da18001a81ed8921f412b3c61755f934158
1 #!/usr/bin/env python
2 from pyx import *
4 g = graph.graphxyz(0, 0, size=5, x=graph.axis.bar(), y=graph.axis.bar(), z=None, z2=graph.axis.lin())
5 g.plot(graph.data.data(graph.data.points([[1, 1, 1.4], [1, 2, 1.8], [2, 1, -0.5], [2, 2, 0.9]]), xname=1, yname=2, z2=3),
6 [graph.style.barpos(fromvalue=0, frompathattrs=None), graph.style.bar(barattrs=[style.linejoin.bevel])])
7 g.doplot()
8 g.writeEPSfile("bar")
9 g.writePDFfile("bar")