Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 9b3ef98d82282343cfac7f840aa5ab34 > files > 338

PyX-0.11.1-1.fc15.i686.rpm

from pyx import *

d = graph.data.points([(1,  0.3),
                       (2, -0.7),
                       (3, -0.3),
                       (4,  0.8),
                       (5,  0.5)], x=1, y=2)

g = graph.graphxy(width=8)
g.plot(d, [graph.style.histogram()])
g.writeEPSfile("histogram")
g.writePDFfile("histogram")