Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a9162f5

Browse filesBrowse files
committed
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 25ff2f7
1 parent c001797 commit a9162f5
Copy full SHA for a9162f5

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎lib/matplotlib/backend_bases.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backend_bases.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3146,7 +3146,7 @@ def _update_view(self):
31463146
a.set_position(pos[i][0], 'original')
31473147
a.set_position(pos[i][1], 'active')
31483148

3149-
self.draw_idle()
3149+
self.canvas.draw_idle()
31503150

31513151
def save_figure(self, *args):
31523152
"""Save the current figure"""

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.