8000 FIX: Make sure the macosx backend updates the canvas when shown · matplotlib/matplotlib@fce4431 · GitHub
[go: up one dir, main page]

Skip to content

Commit fce4431

Browse files
committed
FIX: Make sure the macosx backend updates the canvas when shown
Force a draw_idle() call on the macosx backend when a show() is called to update the canvas.
1 parent 7e358fb commit fce4431

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/matplotlib/backends/backend_macosx.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ def __init__(self, canvas, num):
9191
self.show()
9292
self.canvas.draw_idle()
9393

94+
def show(self):
95+
# docstring inherited
96+
if self.canvas.figure.stale:
97+
self.canvas.draw_idle()
98+
super().show()
99+
94100
def close(self):
95101
Gcf.destroy(self)
96102

0 commit comments

Comments
 (0)
0