Skip to content

Commit

Permalink
Add a draw during show for macos backend
Browse files Browse the repository at this point in the history
Without this a stale figure is shown
  • Loading branch information
ksunden committed Mar 20, 2024
1 parent df148ee commit 52d8bcb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/matplotlib/backends/backend_macosx.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ def start_main_loop(cls):
_macosx.show()

def show(self):
if self.canvas.figure.stale:
self.canvas.draw_idle()
if not self._shown:
self._show()
self._shown = True
Expand Down

0 comments on commit 52d8bcb

Please sign in to comment.