store fig object
This commit is contained in:
@ -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)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user