Fix a bug where closed windows wouldn't reopen at the original size

This commit is contained in:
2026-03-20 20:18:32 +01:00
parent bef907c032
commit dafb204aa0
+1 -1
View File
@@ -768,7 +768,7 @@ class CDIModel(t.nn.Module):
constrained_layout=True)
else:
with plt.rc_context({'figure.raise_window': False}):
fig = plt.figure(panel_def['title'],
fig = plt.figure(panel_def['title'], figsize=figsize,
constrained_layout=True)
fig.clear()