rename texmessage.loadfd to texmessage.loaddef and allow for .def and .fd files
[PyX/mjg.git] / examples / graphs / minimal.py
blob8c1d47fc39d6b5ee94016c77e2f0c20a67ee97a5
1 from pyx import *
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:
9 # 1 2
10 # 2 3
11 # 3 8
12 # 4 13
13 # 5 18
14 # 6 21
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()])