prevent double call of _cleanup, which harms usefiles (and is a bad idea in general)
[PyX.git] / examples / drawing / arrow.py
blobf9590df3c03db08e0489edec4eedfd8adda4e3c0
1 from pyx import *
3 c = canvas.canvas()
4 c.stroke(path.curve(0, 0, 0, 4, 2, 4, 3, 3),
5 [style.linewidth.THICK, style.linestyle.dashed, color.rgb.blue,
6 deco.earrow([deco.stroked([color.rgb.red, style.linejoin.round]),
7 deco.filled([color.rgb.green])], size=1)])
8 c.writeEPSfile("arrow")
9 c.writePDFfile("arrow")
10 c.writeSVGfile("arrow")