resolve the ipython import issue related to ipython bug 3994 by moving mkipynb to...
[PyX.git] / examples / path / arclen.py
blob59ca5052d95aded1192d81e8cd2c74d3d399d6ba
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")