From eed26ee5f9873dcf7dccd4ab188122108638f248 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Mon, 23 Oct 2023 19:02:01 +0200 Subject: [PATCH] store fig object --- zoetrope/aniplot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zoetrope/aniplot.py b/zoetrope/aniplot.py index 46208d9..af63fd6 100644 --- a/zoetrope/aniplot.py +++ b/zoetrope/aniplot.py @@ -18,7 +18,7 @@ class AniPlot: self.axes = set() # handle resizing the window - fig = plt.gcf() + self.fig = fig = plt.gcf() fig.canvas.mpl_connect("draw_event", self.on_resize)