list->points renaming
[PyX.git] / examples / graphstyles / histogram.py
blobde940249ce7b69cd5f0d04cb59fa4a7dc785f009
1 from pyx import *
3 d = graph.data.points([(1, 0.3),
4 (2, -0.7),
5 (3, -0.3),
6 (4, 0.8),
7 (5, 0.5)], x=1, y=2)
9 g = graph.graphxy(width=8)
10 g.plot(d, [graph.style.histogram()])
11 g.writeEPSfile("histogram")
12 g.writePDFfile("histogram")