From 0dbad761c6292f2d685e1b53aa6a889b0492d935 Mon Sep 17 00:00:00 2001 From: Lukas Obkircher Date: Sun, 28 Sep 2025 18:11:31 +0200 Subject: [PATCH] fix AttributeError: 'FigureCanvasQTAgg' object has no attribute 'resize_event' --- pyplot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyplot.py b/pyplot.py index fb3df48..952141a 100755 --- a/pyplot.py +++ b/pyplot.py @@ -130,7 +130,7 @@ def animate_func(i): if update_colormap: im.set_clim(exposure['T_min'], exposure['T_max']) - fig.canvas.resize_event() #force update all, even with blit=True + fig.canvas.draw_idle() # redraw the canvas update_colormap = False return []