some more comments on changelists
[PyX/mjg.git] / examples / graphs / histogram.py
blobd1dc574caf64206c539a0359562f393f525a9e29
1 from pyx import *
3 d = graph.data.list([(1, 0.3),
4 (2, 0.5),
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")