@@ -2711,9 +2711,6 @@ class NavigationToolbar2(object):
27112711 whenever a mouse button is released, you'll be notified with
27122712 the event
27132713
2714- :meth:`dynamic_update` (optional)
2715- dynamically update the window while navigating
2716-
27172714 :meth:`set_message` (optional)
27182715 display message
27192716
@@ -2778,8 +2775,9 @@ def back(self, *args):
27782775 self .set_history_buttons ()
27792776 self ._update_view ()
27802777
2778+ @cbook .deprecated ("2.1" , alternative = "canvas.draw_idle" )
27812779 def dynamic_update (self ):
2782- pass
2780+ self . canvas . draw_idle ()
27832781
27842782 def draw_rubberband (self , event , x0 , y0 , x1 , y1 ):
27852783 """Draw a rectangle rubberband to indicate zoom limits."""
@@ -3024,7 +3022,7 @@ def drag_pan(self, event):
30243022 #safer to use the recorded button at the press than current button:
30253023 #multiple button can get pressed during motion...
30263024 a .drag_pan (self ._button_pressed , event .key , event .x , event .y )
3027- self .dynamic_update ()
3025+ self .canvas . draw_idle ()
30283026
30293027 def drag_zoom (self , event ):
30303028 """Callback for dragging in zoom mode."""
0 commit comments