some restructuring of the axis layout creation
[PyX.git] / manual / graph2.py
blob7cb18af6e791e779026a8e7fb9227771cbfbb754
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)=x**2"))
5 g.writeEPSfile("graph2")
6 g.writePDFfile("graph2")