don't fail on an empty graph key
[PyX.git] / examples / hello.py
blobb6b524dc75c89a1c40094b8083c301493a318e2d
1 from pyx import *
3 c = canvas.canvas()
4 c.text(0, 0, "Hello, world!")
5 c.stroke(path.line(0, 0, 2, 0))
6 c.writeEPSfile("hello")
7 c.writePDFfile("hello")