update the axes examples to the new structure -- hopefully its now becoming more...
[PyX/mjg.git] / examples / axis / rating.py
blob4e1c9cedb49d53dfa67594ba91d4f1d070b70a24
1 from pyx import *
3 p2 = path.curve(0, 0, 3, 0, 1, 4, 4, 4)
4 p1 = p2.transformed(trafo.translate(-4, 0).scaled(0.75))
5 p3 = p2.transformed(trafo.scale(1.25).translated(4, 0))
7 myaxis = graph.axis.linear(min=0, max=10)
9 c = canvas.canvas()
10 c.insert(graph.axis.pathaxis(p1, myaxis))
11 c.insert(graph.axis.pathaxis(p2, myaxis))
12 c.insert(graph.axis.pathaxis(p3, myaxis))
13 c.writeEPSfile("rating")
14 c.writePDFfile("rating")