correct table format
[PyX/mjg.git] / gallery / graphs / shift.py
blob57aea15164f742015383cd1706415f7eda266650
1 # You can manually set the subaxes and exceed the axes ranges.
2 # The width of the regular axes can be modified by a size paramater.
3 # While most axes do not have a size parameter, it can be added to
4 # any existing axis very easily. For linear axes so called sizedlinear
5 # and autosizedlinear axes are defined by PyX already.
7 from pyx import *
9 subaxes = [graph.axis.linear(max=1),
10 graph.axis.linear(max=1),
11 graph.axis.sizedlinear(size=3, min=0, max=3)]
13 g = graph.graphxy(width=8, y=graph.axis.split(subaxes=subaxes))
14 g.plot([graph.data.file("shift.dat", x=1, y="i, $(i+2)", context={"i": i})
15 for i in range(3)], [graph.style.line()])
16 g.writeEPSfile("shift")
17 g.writePDFfile("shift")