@@ -240,10 +240,10 @@ def __init__(self, Q, X, Y, U, label, **kw):
240
240
weak_self = weakref .ref (self )
241
241
242
242
def on_dpi_change (fig ):
243
- _s = weak_self ()
244
- if _s is not None :
245
- _s .labelsep = (_s ._labelsep_inches * fig .dpi )
246
- _s ._initialized = False # simple brute force update
243
+ self_weakref = weak_self ()
244
+ if self_weakref is not None :
245
+ self_weakref .labelsep = (self_weakref ._labelsep_inches * fig .dpi )
246
+ self_weakref ._initialized = False # simple brute force update
247
247
# works because _init is called
248
248
# at the start of draw.
249
249
@@ -448,11 +448,11 @@ def __init__(self, ax, *args, **kw):
448
448
weak_self = weakref .ref (self )
449
449
450
450
def on_dpi_change (fig ):
451
- _s = weak_self ()
452
- if _s is not None :
453
- _s ._new_UV = True # vertices depend on width, span
451
+ self_weakref = weak_self ()
452
+ if self_weakref is not None :
453
+ self_weakref ._new_UV = True # vertices depend on width, span
454
454
# which in turn depend on dpi
455
- _s ._initialized = False # simple brute force update
455
+ self_weakref ._initialized = False # simple brute force update
456
456
# works because _init is called
457
457
# at the start of draw.
458
458
@@ -888,8 +888,9 @@ def __init__(self, ax, *args, **kw):
888
888
889
889
#Make a collection
890
890
barb_size = self ._length ** 2 / 4 # Empirically determined
891
- mcollections .PolyCollection .__init__ (self , [], (barb_size ,), offsets = xy ,
892
- transOffset = transform , ** kw )
891
+ mcollections .PolyCollection .__init__ (self , [], (barb_size ,),
892
+ offsets = xy ,
893
+ transOffset = transform , ** kw )
893
894
self .set_transform (transforms .IdentityTransform ())
894
895
895
896
self .set_UVC (u , v , c )
0 commit comments