fix defaults for x any y (to be strings)
[PyX.git] / examples / text / textbox.py
blob6818821a738d36f24108fc76ecb530b978fcf24d
1 from pyx import *
2 unit.set(xscale=3)
4 tbox = text.text(0, 0, r"Boxed text")
5 tpath = tbox.bbox().enlarged(3*unit.x_pt).path()
7 c = canvas.canvas()
8 c.draw(tpath, [deco.filled([color.cmyk.Yellow]), deco.stroked()])
9 c.insert(tbox)
10 c.writeEPSfile("textbox")
11 c.writePDFfile("textbox")
12 c.writeSVGfile("textbox")