@@ -1699,17 +1699,17 @@ def release(self, event):
1699
1699
1700
1700
def draw_rubberband (self , event , x0 , y0 , x1 , y1 ):
1701
1701
if self .RetinaFix : # On Macs, use the following code
1702
- # wx.DCOverlay does not work properly on Retina displays.
1702
+ # wx.DCOverlay does not work properly on Retina displays.
1703
1703
rubberBandColor = '#C0C0FF'
1704
1704
if self .prevZoomRect :
1705
1705
self .prevZoomRect .pop (0 ).remove ()
1706
1706
self .canvas .restore_region (self .savedRetinaImage )
1707
- X0 ,X1 = self .zoomStartX ,event .xdata
1708
- Y0 ,Y1 = self .zoomStartY ,event .ydata
1707
+ X0 , X1 = self .zoomStartX , event .xdata
1708
+ Y0 , Y1 = self .zoomStartY , event .ydata
1709
1709
lineX = (X0 , X0 , X1 , X1 , X0 )
1710
1710
lineY = (Y0 , Y1 , Y1 , Y0 , Y0 )
1711
1711
self .prevZoomRect = self .canvas .figure .gca ().plot (
1712
- lineX ,lineY ,'-' ,color = rubberBandColor )
1712
+ lineX , lineY , '-' , color = rubberBandColor )
1713
1713
self .canvas .figure .gca ().draw_artist (self .prevZoomRect [0 ])
1714
1714
self .canvas .blit (self .canvas .figure .gca ().bbox )
1715
1715
return
0 commit comments