3 text
.set(text
.LatexRunner
)
4 text
.preamble(r
"\renewcommand{\familydefault}{\ttdefault}")
7 # positioning is quite ugly ... but it works at the moment
14 def drawstyle(name
, showpath
=0, default
=0):
16 p
= path
.path(path
.moveto(x
+ 0.1, y
+0.1 ),
17 path
.rlineto(length
/2.0, 0.3),
18 path
.rlineto(length
/2.0, -0.3))
19 c
.stroke(p
, [style
.linewidth
.THIck
, eval("style."+name
)])
21 c
.stroke(p
, [style
.linewidth
.Thin
, color
.gray
.white
])
23 name
= name
+ r
"\rm\quad (default)"
24 c
.text(x
+ 1.5, y
+ 0.15, name
, [text
.size
.footnotesize
])
31 drawstyle("linecap.butt", showpath
=1, default
=1)
32 drawstyle("linecap.round", showpath
=1)
33 drawstyle("linecap.square", showpath
=1)
37 drawstyle("linejoin.miter", showpath
=1, default
=1)
38 drawstyle("linejoin.round", showpath
=1)
39 drawstyle("linejoin.bevel", showpath
=1)
43 drawstyle("linestyle.solid", default
=1)
44 drawstyle("linestyle.dashed")
45 drawstyle("linestyle.dotted")
46 drawstyle("linestyle.dashdotted")
50 drawstyle("linewidth.THIN")
51 drawstyle("linewidth.THIn")
52 drawstyle("linewidth.THin")
53 drawstyle("linewidth.Thin")
54 drawstyle("linewidth.thin")
55 drawstyle("linewidth.normal", default
=1)
56 drawstyle("linewidth.thick")
57 drawstyle("linewidth.Thick")
58 drawstyle("linewidth.THick")
59 drawstyle("linewidth.THIck")
60 drawstyle("linewidth.THICk")
61 drawstyle("linewidth.THICK")
63 drawstyle("miterlimit.lessthan180deg", showpath
=1)
64 drawstyle("miterlimit.lessthan90deg", showpath
=1)
65 drawstyle("miterlimit.lessthan60deg", showpath
=1)
66 drawstyle("miterlimit.lessthan45deg", showpath
=1)
67 drawstyle("miterlimit.lessthan11deg", showpath
=1, default
=1)
71 drawstyle("dash((1, 1, 2, 2, 3, 3), 0)")
72 drawstyle("dash((1, 1, 2, 2, 3, 3), 1)")
73 drawstyle("dash((1, 2, 3), 2)")
74 drawstyle("dash((1, 2, 3), 3)")
75 drawstyle("dash((1, 2, 3), 4)")
76 drawstyle("dash((1, 2, 3), rellengths=1)")