Skip to content

Commit bb9f1c7

Browse files
committed
removing legacy method dynamic update
1 parent 68dc711 commit bb9f1c7

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

lib/matplotlib/backend_bases.py

-3
Original file line numberDiff line numberDiff line change
@@ -3576,9 +3576,6 @@ def draw(self):
35763576
loc.refresh()
35773577
self.canvas.draw_idle()
35783578

3579-
def dynamic_update(self):
3580-
pass
3581-
35823579
def set_cursor(self, cursor):
35833580
"""
35843581
Set the current cursor to one of the :class:`Cursors`

lib/matplotlib/backend_tools.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -677,4 +677,4 @@ def _mouse_move(self, event):
677677
# safer to use the recorded button at the _press than current
678678
# button: # multiple button can get pressed during motion...
679679
a.drag_pan(self._button_pressed, event.key, event.x, event.y)
680-
self.navigation.dynamic_update()
680+
self.navigation.canvas.draw_idle()

lib/matplotlib/backends/backend_gtk3.py

-4
Original file line numberDiff line numberDiff line change
@@ -740,10 +740,6 @@ def draw_rubberband(self, event, caller, x0, y0, x1, y1):
740740
self.ctx.set_source_rgb(0, 0, 0)
741741
self.ctx.stroke()
742742

743-
def dynamic_update(self):
744-
# legacy method; new method is canvas.draw_idle
745-
self.canvas.draw_idle()
746-
747743

748744
class ToolbarGTK3(ToolbarBase, Gtk.Box,):
749745
def __init__(self, manager):

0 commit comments

Comments
 (0)