update upload data
[PyX.git] / examples / graphs / points.py
blob8559760f3afe4d885b81fddb96a4b850e161f09e
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=range(10), y=range(10)))
8 # or provide one list containing the whole points
9 g.plot(graph.data.points(zip(range(10), range(10)), x=1, y=2))
10 g.writeEPSfile("points")
11 g.writePDFfile("points")