move symbol before line
[PyX/mjg.git] / examples / axis / simple.py
blob90919f26e35f13a9716e6e0daaf8cca58fc9165d
1 # This is the basic example how to draw an axis along an arbitrary
2 # path. The function pathaxis from the graph.axis module takes a path
3 # and returns a canvas. Different from the typical usecase in graphs,
4 # we must fix the axis range by appropriate min and max arguments,
5 # because of missing data. In graphs the range can be adjusted
6 # automatically.
8 from pyx import *
10 c = graph.axis.pathaxis(path.curve(0, 0, 3, 0, 1, 4, 4, 4),
11 graph.axis.linear(min=0, max=10))
12 c.writeEPSfile("simple")