Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 9b3ef98d82282343cfac7f840aa5ab34 > files > 327

PyX-0.11.1-1.fc15.i686.rpm

# suggested by Chris Spencer

from pyx import *

g = graph.graphxy(width=8)
# either provide lists of the individual coordinates
g.plot(graph.data.values(x=range(10), y=range(10)))
# or provide one list containing the whole points
g.plot(graph.data.points(zip(range(10), range(10)), x=1, y=2))
g.writeEPSfile("points")
g.writePDFfile("points")