convert manual to python documentation style
[PyX/mjg.git] / manual / graph2.py
blob712767ed9ce00a3c5168491493b0cf4d586fe559
1 from pyx import *
2 g = graph.graphxy(width=10)
3 g.plot(graph.data.function("y=x**2"))
4 g.plot(graph.data.file("graph.dat", x=1, y=2))
5 g.writeEPSfile("graph2")