3 g
= graph
.graphxy(width
=8)
4 g
.plot(graph
.data
.file("minimal.dat", x
=1, y
=2))
5 g
.writeEPSfile("minimal")
6 g
.writePDFfile("minimal")
8 # the file minimal.dat looks like:
16 # graph styles can be modified by a second parameter to the plot method:
17 # g.plot(graph.data.file("minimal.dat", x=1, y=2), [graph.style.line()])