@@ -2929,7 +2929,7 @@ def __init__(self, canvas):
29292929 canvas .toolbar = self
29302930 self ._nav_stack = cbook .Stack ()
29312931 # This cursor will be set after the initial draw.
2932- self ._lastCursor = tools .Cursors .POINTER
2932+ self ._last_cursor = tools .Cursors .POINTER
29332933
29342934 self ._id_press = self .canvas .mpl_connect (
29352935 'button_press_event' , self ._zoom_pan_handler )
@@ -2998,16 +2998,16 @@ def _update_cursor(self, event):
29982998 """
29992999 if self .mode and event .inaxes and event .inaxes .get_navigate ():
30003000 if (self .mode == _Mode .ZOOM
3001- and self ._lastCursor != tools .Cursors .SELECT_REGION ):
3001+ and self ._last_cursor != tools .Cursors .SELECT_REGION ):
30023002 self .canvas .set_cursor (tools .Cursors .SELECT_REGION )
3003- self ._lastCursor = tools .Cursors .SELECT_REGION
3003+ self ._last_cursor = tools .Cursors .SELECT_REGION
30043004 elif (self .mode == _Mode .PAN
3005- and self ._lastCursor != tools .Cursors .MOVE ):
3005+ and self ._last_cursor != tools .Cursors .MOVE ):
30063006 self .canvas .set_cursor (tools .Cursors .MOVE )
3007- self ._lastCursor = tools .Cursors .MOVE
3008- elif self ._lastCursor != tools .Cursors .POINTER :
3007+ self ._last_cursor = tools .Cursors .MOVE
3008+ elif self ._last_cursor != tools .Cursors .POINTER :
30093009 self .canvas .set_cursor (tools .Cursors .POINTER )
3010- self ._lastCursor = tools .Cursors .POINTER
3010+ self ._last_cursor = tools .Cursors .POINTER
30113011
30123012 @contextmanager
30133013 def _wait_cursor_for_draw_cm (self ):
@@ -3027,7 +3027,7 @@ def _wait_cursor_for_draw_cm(self):
30273027 self .canvas .set_cursor (tools .Cursors .WAIT )
30283028 yield
30293029 finally :
3030- self .canvas .set_cursor (self ._lastCursor )
3030+ self .canvas .set_cursor (self ._last_cursor )
30313031 else :
30323032 yield
30333033
0 commit comments