prevent double call of _cleanup, which harms usefiles (and is a bad idea in general)
[PyX.git] / examples / axis / rating.py
blob2a23a75997f37baad5138485619b423b0d0b8ec3
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")
15 c.writeSVGfile("rating")