prevent double call of _cleanup, which harms usefiles (and is a bad idea in general)
[PyX.git] / examples / drawing / path.py
blob3774b5093cc96e729b621f20ee174c05891b4b16
1 from pyx import *
3 c = canvas.canvas()
4 c.stroke(path.line(0, 0, 3, 0))
5 c.stroke(path.rect(0, 1, 1, 1))
6 c.fill(path.circle(2.5, 1.5, 0.5))
7 c.writeEPSfile("path")
8 c.writePDFfile("path")
9 c.writeSVGfile("path")