Skip to content

Commit 52d8bcb

Browse files
committed
Add a draw during show for macos backend
Without this a stale figure is shown
1 parent df148ee commit 52d8bcb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/backends/backend_macosx.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ def start_main_loop(cls):
179179
_macosx.show()
180180

181181
def show(self):
182+
if self.canvas.figure.stale:
183+
self.canvas.draw_idle()
182184
if not self._shown:
183185
self._show()
184186
self._shown = True

0 commit comments

Comments
 (0)