2 import sys
; sys
.path
[:0] = ["../.."]
10 c
.stroke(path(moveto(10,20),
11 curveto(12,16,14,15,12,19),
12 rcurveto(-3,2,3,3,-2,4)),
13 [deco
.barrow
.small
, deco
.earrow
.normal
])
15 c
.stroke(path(arc(8,15,4,10,70)), [deco
.barrow
.small
, deco
.earrow
.normal
])
16 c
.stroke(path(arc(8,15,3,10,70)), [deco
.barrow
.small
, deco
.earrow
.normal
])
17 c
.stroke(path(arc(8,15,2,10,70)), [deco
.barrow
.small
, deco
.earrow
.normal
])
18 c
.stroke(path(arc(8,15,1,10,70)), [deco
.barrow
.small
, deco
.earrow
.normal
])
19 c
.stroke(path(arc(8,15,0.5,10,70)), [deco
.barrow
.small
, deco
.earrow
.normal
])
23 c
.stroke(path(moveto(5,10), rlineto(5,0)),
24 [#deco.barrow(size=base/math.sqrt(8)*unit.t_pt, constriction=1),
26 c
.stroke(path(moveto(5,10.5), rlineto(5,0)),
27 [deco
.barrow(size
=base
/math
.sqrt(4)*unit
.t_pt
, constriction
=1),
29 c
.stroke(path(moveto(5,11), rlineto(5,0)),
30 [deco
.barrow(size
=base
/math
.sqrt(2)*unit
.t_pt
, constriction
=1),
32 c
.stroke(path(moveto(5,11.5), rlineto(5,0)),
33 [deco
.barrow(size
=base
/math
.sqrt(1)*unit
.t_pt
, constriction
=1),
35 c
.stroke(path(moveto(5,12), rlineto(5,0)),
36 [deco
.barrow(size
=base
*math
.sqrt(2)*unit
.t_pt
, constriction
=1),
38 c
.stroke(path(moveto(5,12.5), rlineto(5,0)),
39 [deco
.barrow(size
=base
*math
.sqrt(4)*unit
.t_pt
, constriction
=1),
41 c
.stroke(path(moveto(5,13), rlineto(5,0)),
42 [deco
.barrow(size
=base
*math
.sqrt(8)*unit
.t_pt
, constriction
=1),
44 c
.stroke(path(moveto(5,13.5), rlineto(5,0)),
45 [deco
.barrow(size
=base
*math
.sqrt(16)*unit
.t_pt
, constriction
=1),
48 lt
= style
.linewidth
.THick
50 c
.stroke(path(moveto(11,10), rlineto(5,0)),
52 deco
.barrow(size
=base
/math
.sqrt(8)*unit
.t_pt
, constriction
=1),
54 c
.stroke(path(moveto(11,10.5), rlineto(5,0)),
56 deco
.barrow(size
=base
/math
.sqrt(4)*unit
.t_pt
, constriction
=1),
58 c
.stroke(path(moveto(11,11), rlineto(5,0)),
60 deco
.barrow(size
=base
/math
.sqrt(2)*unit
.t_pt
, constriction
=1),
62 c
.stroke(path(moveto(11,11.5), rlineto(5,0)),
64 deco
.barrow(size
=base
/math
.sqrt(1)*unit
.t_pt
, constriction
=1),
66 c
.stroke(path(moveto(11,12), rlineto(5,0)),
68 deco
.barrow(size
=base
*math
.sqrt(2)*unit
.t_pt
, constriction
=1),
70 c
.stroke(path(moveto(11,12.5), rlineto(5,0)),
72 deco
.barrow(size
=base
*math
.sqrt(4)*unit
.t_pt
, constriction
=1),
74 c
.stroke(path(moveto(11,13), rlineto(5,0)),
76 deco
.barrow(size
=base
*math
.sqrt(8)*unit
.t_pt
, constriction
=1),
77 deco
.earrow
.LArge(attrs
=[style
.linestyle
.dashed
, color
.rgb
.green
])])
78 c
.stroke(path(moveto(11,13.5), rlineto(5,0)),
80 deco
.barrow(size
=base
*math
.sqrt(16)*unit
.t_pt
, constriction
=1),
81 deco
.earrow
.LARge(attrs
=[color
.rgb
.red
,
82 deco
.stroked([style
.linejoin
.round]),
83 deco
.filled([color
.rgb
.blue
])])])
89 c
.writeEPSfile("test_arrow", paperformat
="a4", rotated
=0, fittosize
=1)
90 c
.writePDFfile("test_arrow", paperformat
="a4")