use the same coordinate space for the origin point, even though this is irrelevant...
[PyX.git] / examples / path / arclen.py
blobd9c54d24c7cb2cd614fed93a33909005f23139c9
1 from pyx import *
3 c = canvas.canvas()
5 p1 = path.curve(0, 0, 1, 0, 1, 1, 2, 1)
6 p2 = path.line(0, 0, p1.arclen(), 0)
7 c.stroke(p1)
8 c.stroke(p2)
10 c.writeEPSfile("arclen")
11 c.writePDFfile("arclen")
12 c.writeSVGfile("arclen")