PyX — Gallery: misc/pattern.py

0.2 KB
23.4 KB
15.8 KB
9.3 KB
7.0 KB

pattern

pattern.png
from pyx import *

p = pattern.pattern()
p.text(0, 0, r"\PyX")

c = canvas.canvas()
c.text(0, 0, r"\PyX", [trafo.scale(25), p])
c.writeEPSfile()
c.writePDFfile()
c.writeSVGfile()