rename texmessage.loadfd to texmessage.loaddef and allow for .def and .fd files
[PyX/mjg.git] / examples / splitgraphs / minimal.py
blob1be9856d39dbcd598ae0ed4c1632446231e41fb5
1 # In the most simple case we create a data column
2 # containing a tuple and use a splitaxis.
4 from pyx import *
6 g = graph.graphxy(width=8, x=graph.axis.split())
7 g.plot(graph.data.list([((0, 0.1), 0.1),
8 ((0, 0.5), 0.2),
9 ((0, 0.9), 0.3),
10 ((1, 101), 0.7),
11 ((1, 105), 0.8),
12 ((1, 109), 0.9)], x=1, y=2))
13 g.writeEPSfile("minimal")
14 g.writePDFfile("minimal")