@@ -2711,9 +2711,6 @@ class NavigationToolbar2(object):
2711
2711
whenever a mouse button is released, you'll be notified with
2712
2712
the event
2713
2713
2714
- :meth:`dynamic_update` (optional)
2715
- dynamically update the window while navigating
2716
-
2717
2714
:meth:`set_message` (optional)
2718
2715
display message
2719
2716
@@ -2778,8 +2775,9 @@ def back(self, *args):
2778
2775
self .set_history_buttons ()
2779
2776
self ._update_view ()
2780
2777
2778
+ @cbook .deprecated ("2.1" , alternative = "canvas.draw_idle" )
2781
2779
def dynamic_update (self ):
2782
- pass
2780
+ self . canvas . draw_idle ()
2783
2781
2784
2782
def draw_rubberband (self , event , x0 , y0 , x1 , y1 ):
2785
2783
"""Draw a rectangle rubberband to indicate zoom limits."""
@@ -3024,7 +3022,7 @@ def drag_pan(self, event):
3024
3022
#safer to use the recorded button at the press than current button:
3025
3023
#multiple button can get pressed during motion...
3026
3024
a .drag_pan (self ._button_pressed , event .key , event .x , event .y )
3027
- self .dynamic_update ()
3025
+ self .canvas . draw_idle ()
3028
3026
3029
3027
def drag_zoom (self , event ):
3030
3028
"""Callback for dragging in zoom mode."""
0 commit comments