prevent double call of _cleanup, which harms usefiles (and is a bad idea in general)
[PyX.git] / examples / drawing / style.py
blob8a6fea5d8cef2aa1b7e997ee89c8f6e4aff85327
1 from pyx import *
3 c = canvas.canvas()
4 c.stroke(path.line(0, 0, 4, 0),
5 [style.linewidth.THICK, style.linestyle.dashed, color.rgb.red])
6 c.stroke(path.line(0, -1, 4, -1),
7 [style.linewidth(0.2), style.linecap.round, color.rgb.green])
8 c.fill(path.rect(0, -3, 4, 1), [color.rgb.blue])
9 c.writeEPSfile("style")
10 c.writePDFfile("style")
11 c.writeSVGfile("style")