monkey-patch for mathpazo bug
[PyX/mjg.git] / test / experimental / writepdf.py
blob5b96c588c68eea4688f7f10be056ef82fd5ccdff
1 import sys; sys.path[:0] = ["../.."]
2 from pyx import *
4 c = canvas.canvas()
5 #c.stroke(path.line(0, 0, 3, 4), [style.linewidth.THIN, color.rgb.red])
6 #c.stroke(path.curve(0, 0, 2, 0, 1, 4, 3, 4), [deco.wriggle(), color.rgb.blue])
7 #c.stroke(path.curve(0, 0, 2, 0, 1, 4, 3, 4), [style.linestyle.dotted, color.rgb.green])
8 b = 0.75
9 for h in range(11):
10 for s in range(11):
11 c.draw(path.rect(h, s, 1, 1), [deco.stroked(), deco.filled([color.hsb(h/10.0, s/10.0, b)])])
12 c.writePDFfile("writepdf")
13 c.writeEPSfile("writepdf")