@@ -1230,18 +1230,18 @@ def __init__(self, x, y, dx, dy, width=0.001, length_includes_head=False,
1230
1230
# start by drawing horizontal arrow, point at (0,0)
1231
1231
hw , hl , hs , lw = head_width , head_length , overhang , width
1232
1232
left_half_arrow = np .array ([
1233
- [0.0 , 0.0 ], # tip
1234
- [- hl , - hw / 2.0 ], # leftmost
1235
- [- hl * (1 - hs ), - lw / 2.0 ], # meets stem
1236
- [- length , - lw / 2.0 ], # bottom left
1233
+ [0.0 , 0.0 ], # tip
1234
+ [- hl , - hw / 2 ], # leftmost
1235
+ [- hl * (1 - hs ), - lw / 2 ], # meets stem
1236
+ [- length , - lw / 2 ], # bottom left
1237
1237
[- length , 0 ],
1238
1238
])
1239
1239
# if we're not including the head, shift up by head length
1240
1240
if not length_includes_head :
1241
1241
left_half_arrow += [head_length , 0 ]
1242
1242
# if the head starts at 0, shift up by another head length
1243
1243
if head_starts_at_zero :
1244
- left_half_arrow += [head_length / 2.0 , 0 ]
1244
+ left_half_arrow += [head_length / 2 , 0 ]
1245
1245
# figure out the shape, and complete accordingly
1246
1246
if shape == 'left' :
1247
1247
coords = left_half_arrow
@@ -1266,7 +1266,7 @@ def __init__(self, x, y, dx, dy, width=0.001, length_includes_head=False,
1266
1266
M = [[cx , sx ], [- sx , cx ]]
1267
1267
verts = np .dot (coords , M ) + (x + dx , y + dy )
1268
1268
1269
- Polygon .__init__ (self , list ( map ( tuple , verts )) , closed = True , ** kwargs )
1269
+ super () .__init__ (verts , closed = True , ** kwargs )
1270
1270
1271
1271
1272
1272
docstring .interpd .update ({"FancyArrow" : FancyArrow .__init__ .__doc__ })
0 commit comments