@@ -3309,8 +3309,9 @@ def transmute(self, path, mutation_size, linewidth):
3309
3309
x1 , y1 = path .vertices [1 ]
3310
3310
3311
3311
# If there is no room for an arrow and a line, then skip the arrow
3312
- hasBeginArrow = self .beginArrow and not ((x0 == x1 ) and (y0 == y1 ))
3313
- if hasBeginArrow :
3312
+ has_begin_arrow = (self .beginarrow and
3313
+ not ((x0 == x1 ) and (y0 == y1 )))
3314
+ if has_begin_arrow :
3314
3315
verticesA , codesA , ddxA , ddyA = \
3315
3316
self ._get_arrow_wedge (x1 , y1 , x0 , y0 ,
3316
3317
head_dist , cos_t , sin_t ,
@@ -3324,8 +3325,8 @@ def transmute(self, path, mutation_size, linewidth):
3324
3325
x3 , y3 = path .vertices [- 1 ]
3325
3326
3326
3327
# If there is no room for an arrow and a line, then skip the arrow
3327
- hasEndArrow = self .endArrow and not ((x2 == x3 ) and (y2 == y3 ))
3328
- if hasEndArrow :
3328
+ has_end_arrow = ( self .endarrow and not ((x2 == x3 ) and (y2 == y3 ) ))
3329
+ if has_end_arrow :
3329
3330
verticesB , codesB , ddxB , ddyB = \
3330
3331
self ._get_arrow_wedge (x2 , y2 , x3 , y3 ,
3331
3332
head_dist , cos_t , sin_t ,
@@ -3342,7 +3343,7 @@ def transmute(self, path, mutation_size, linewidth):
3342
3343
path .codes )]
3343
3344
_fillable = [False ]
3344
3345
3345
- if hasBeginArrow :
3346
+ if has_begin_arrow :
3346
3347
if self .fillbegin :
3347
3348
p = np .concatenate ([verticesA , [verticesA [0 ],
3348
3349
verticesA [0 ]], ])
@@ -3353,7 +3354,7 @@ def transmute(self, path, mutation_size, linewidth):
3353
3354
_path .append (Path (verticesA , codesA ))
3354
3355
_fillable .append (False )
3355
3356
3356
- if hasEndArrow :
3357
+ if has_end_arrow :
3357
3358
if self .fillend :
3358
3359
_fillable .append (True )
3359
3360
p = np .concatenate ([verticesB , [verticesB [0 ],
0 commit comments