@@ -220,7 +220,7 @@ def get_quiver_arrows(self):
220
220
# Get barb lengths(default arrow length = 30% barb length)
221
221
barb_len = [None ] * len (self .x )
222
222
for index in range (len (barb_len )):
223
- barb_len [index ] = math .hypot (dif_x [index ], dif_y [index ])
223
+ barb_len [index ] = math .hypot (dif_x [index ] / self . scaleratio , dif_y [index ])
224
224
225
225
# Make arrow lengths
226
226
arrow_len = [None ] * len (self .x )
@@ -229,7 +229,7 @@ def get_quiver_arrows(self):
229
229
# Get barb angles
230
230
barb_ang = [None ] * len (self .x )
231
231
for index in range (len (barb_ang )):
232
- barb_ang [index ] = math .atan2 (dif_y [index ], dif_x [index ])
232
+ barb_ang [index ] = math .atan2 (dif_y [index ], dif_x [index ] / self . scaleratio )
233
233
234
234
# Set angles to create arrow
235
235
ang1 = [i + self .angle for i in barb_ang ]
@@ -257,9 +257,9 @@ def get_quiver_arrows(self):
257
257
258
258
# Set coordinates to create arrow
259
259
for index in range (len (self .end_x )):
260
- point1_x = [i - j for i , j in zip (self .end_x , seg1_x )]
260
+ point1_x = [i - j * self . scaleratio for i , j in zip (self .end_x , seg1_x )]
261
261
point1_y = [i - j for i , j in zip (self .end_y , seg1_y )]
262
- point2_x = [i - j for i , j in zip (self .end_x , seg2_x )]
262
+ point2_x = [i - j * self . scaleratio for i , j in zip (self .end_x , seg2_x )]
263
263
point2_y = [i - j for i , j in zip (self .end_y , seg2_y )]
264
264
265
265
# Combine lists to create arrow
0 commit comments