From a9162f50231a9bb9be3cf2278d68b55afe011b24 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Mon, 19 Aug 2013 21:39:37 -0500 Subject: [PATCH] fix draw_idle reference in NavigationToolbar2 NavigationToolbar2 sub-classes do not (all?) have a draw_idle method (strictly speaking, the QT one does not). I assume this should have bounce strait to the canvas, not through the `NavigationToolbar2.draw()` method. Change introduced in 25ff2f70764b71c7126929e0ef08e7b18c42a0d4 --- lib/matplotlib/backend_bases.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/backend_bases.py b/lib/matplotlib/backend_bases.py index e3f8865fe04f..d052fe4d7f6c 100644 --- a/lib/matplotlib/backend_bases.py +++ b/lib/matplotlib/backend_bases.py @@ -3146,7 +3146,7 @@ def _update_view(self): a.set_position(pos[i][0], 'original') a.set_position(pos[i][1], 'active') - self.draw_idle() + self.canvas.draw_idle() def save_figure(self, *args): """Save the current figure"""