@@ -252,12 +252,12 @@ def set_figure(self, figure):
252252 self ._toggled = True
253253
254254
255- class SetCursorBase (ToolBase ):
255+ class ToolSetCursor (ToolBase ):
256256 """
257257 Change to the current cursor while inaxes.
258258
259- This tool, keeps track of all `ToolToggleBase` derived tools, and calls
260- `set_cursor` when a tool gets triggered.
259+ This tool, keeps track of all `ToolToggleBase` derived tools, and updates
260+ the cursor when a tool gets triggered.
261261 """
262262 def __init__ (self , * args , ** kwargs ):
263263 super ().__init__ (* args , ** kwargs )
@@ -310,18 +310,6 @@ def _set_cursor_cbk(self, event):
310310 self .canvas .set_cursor (self ._default_cursor )
311311 self ._last_cursor = self ._default_cursor
312312
313- @_api .deprecated ("3.5" , alternative = "`.FigureCanvasBase.set_cursor`" )
314- def set_cursor (self , cursor ):
315- """
316- Set the cursor.
317- """
318- self .canvas .set_cursor (cursor )
319-
320-
321- # This exists solely for deprecation warnings; remove with
322- # SetCursorBase.set_cursor.
323- ToolSetCursor = SetCursorBase
324-
325313
326314class ToolCursorPosition (ToolBase ):
327315 """
@@ -979,7 +967,7 @@ def trigger(self, *args, **kwargs):
979967 'yscale' : ToolYScale ,
980968 'position' : ToolCursorPosition ,
981969 _views_positions : ToolViewsPositions ,
982- 'cursor' : SetCursorBase ,
970+ 'cursor' : ToolSetCursor ,
983971 'rubberband' : RubberbandBase ,
984972 'help' : ToolHelpBase ,
985973 'copy' : ToolCopyToClipboardBase ,
0 commit comments