include manual and faq sources; distribute PDF instead of PostScript
[PyX/mjg.git] / examples / graphs / minimal.py
blobf8801face61d893fbf0b088934270eaabe0dfe57
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")
7 # the file minimal.dat looks like:
8 # 1 2
9 # 2 3
10 # 3 8
11 # 4 13
12 # 5 18
13 # 6 21
15 # graph styles can be modified by a second parameter to the plot method:
16 # g.plot(graph.data.file("minimal.dat", x=1, y=2), graph.line())