Skip to content

Commit 5c10202

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 5c10202

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/matplotlib/backends/backend_macosx.py

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

94+
def show(self):
95+
# docstring inherited
96+
self.canvas.draw_idle()
97+
super().show()
98+
9499
def close(self):
95100
Gcf.destroy(self)
96101

0 commit comments

Comments
 (0)