reminder for 0.3.1 changes
[PyX/mjg.git] / test / functional / test_unit.py
blob0df6e05d486f6dd4d7a35774b302b7b5df2fa79c
1 #!/usr/bin/env python
2 import sys; sys.path[:0] = ["../.."]
4 from pyx import *
5 from pyx.path import *
7 c=canvas.canvas()
9 unit.set(uscale=1)
10 c.stroke(path(moveto(0,0), lineto(unit.length("1 u")+unit.length("1 t"), "1 u")), color.rgb.red)
11 unit.set(uscale=2)
12 c.stroke(path(moveto(0,0), lineto(unit.length("1 u")+unit.length("1 t"), "1 u")), color.rgb.green)
13 unit.set(uscale=4)
14 c.stroke(path(moveto(0,0), lineto(unit.length("1 u")+unit.length("1 t"), "1 u")), color.rgb.blue)
16 c.writetofile("test_unit")