Replace prolog module by new, more generic resource module and replace prolog
[PyX/mjg.git] / manual / graph2.py
blob1ec5ff85e417e1434ac88e5a08a743d49ac2a3cd
1 from pyx import *
2 g = graph.graphxy(width=8)
3 g.plot(graph.data.file("graph.dat", x=1, y=2))
4 g.plot(graph.data.function("y=x**2"))
5 g.writeEPSfile("graph2")