store fig object

This commit is contained in:
2023-10-23 19:02:01 +02:00
parent f2c315bebb
commit eed26ee5f9

View File

@ -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)