@@ -249,9 +249,10 @@ def on_dpi_change(fig):
249249 self_weakref = weak_self ()
250250 if self_weakref is not None :
251251 self_weakref .labelsep = (self_weakref ._labelsep_inches * fig .dpi )
252- # simple brute force update works because _init is called at
253- # the start of draw
254- self_weakref ._initialized = False
252+ self_weakref ._initialized = False # simple brute force update
253+ # works because _init is
254+ # called at the start of
255+ # draw.
255256
256257 self ._cid = Q .ax .figure .callbacks .connect ('dpi_changed' ,
257258 on_dpi_change )
@@ -467,11 +468,12 @@ def __init__(self, ax, *args, **kw):
467468 def on_dpi_change (fig ):
468469 self_weakref = weak_self ()
469470 if self_weakref is not None :
470- # vertices depend on width, span which in turn depend on dpi
471- self_weakref ._new_UV = True
472- # simple brute force update works because _init is called at
473- # the start of draw
474- self_weakref ._initialized = False
471+ self_weakref ._new_UV = True # vertices depend on width, span
472+ # which in turn depend on dpi
473+ self_weakref ._initialized = False # simple brute force update
474+ # works because _init is
475+ # called at the start of
476+ # draw.
475477
476478 self ._cid = self .ax .figure .callbacks .connect ('dpi_changed' ,
477479 on_dpi_change )
@@ -698,9 +700,9 @@ def _h_arrows(self, length):
698700 if self .pivot == 'middle' :
699701 X -= 0.5 * X [:, 3 , np .newaxis ]
700702 elif self .pivot == 'tip' :
701- # numpy bug? using -= does not work here unless we multiply by a
702- # float first, as with 'mid'.
703- X = X - X [:, 3 , np . newaxis ]
703+ X = X - X [:, 3 , np . newaxis ] # numpy bug? using -= does not
704+ # work here unless we multiply
705+ # by a float first, as with 'mid'.
704706 tooshort = length < self .minlength
705707 if tooshort .any ():
706708 # Use a heptagonal dot:
0 commit comments