7 text
.preamble(r
"\renewcommand{\familydefault}{\ttdefault}")
10 # positioning is quite ugly ... but it works at the moment
17 def drawdeco(name
, showpath
=0, default
=0):
19 p
= path
.path(path
.moveto(x
+ 0.1, y
+0.1 ),
20 path
.rlineto(length
/2.0, 0.3),
21 path
.rlineto(length
/2.0, -0.3))
22 c
.stroke(p
, [style
.linewidth
.THIck
, eval("deco."+name
)])
24 c
.stroke(p
, [style
.linewidth
.Thin
, color
.gray
.white
])
26 name
= name
+ r
"\rm\quad (default)"
27 c
.text(x
+ 1.5, y
+ 0.15, name
, [text
.size
.footnotesize
])
33 drawdeco("earrow.Small")
34 drawdeco("earrow.small")
35 drawdeco("earrow.normal")
36 drawdeco("earrow.large")
37 drawdeco("earrow.Large")
41 drawdeco("barrow.normal")
45 drawdeco("earrow.Large([deco.filled([color.rgb.red]), style.linewidth.normal])")
46 drawdeco("earrow.normal(constriction=0)")
47 drawdeco("earrow.Large([style.linejoin.round])")
48 drawdeco("earrow.Large([deco.stroked.clear])")
50 c
.writeEPSfile("arrows")