fix cross-device link error
[PyX.git] / examples / graphstyles / histogram.py
blob558ed45302dc379aae743cce2a0368bd7349018e
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")
13 g.writeSVGfile("histogram")