prevent double call of _cleanup, which harms usefiles (and is a bad idea in general)
[PyX.git] / examples / graphs / points.py
blob3aeb6c70126cb123936cf9e2a83df04f544da20a
1 # suggested by Chris Spencer
3 from pyx import *
5 g = graph.graphxy(width=8)
6 # either provide lists of the individual coordinates
7 g.plot(graph.data.values(x=list(range(10)), y=list(range(10))))
8 # or provide one list containing the whole points
9 g.plot(graph.data.points(list(zip(range(10), range(10))), x=1, y=2))
10 g.writeEPSfile("points")
11 g.writePDFfile("points")
12 g.writeSVGfile("points")