Made a few more updates to some example scripts, to show the panel plot mode

This commit is contained in:
allevitan
2026-03-20 17:35:25 +01:00
parent f4260837bc
commit e7f943e254
4 changed files with 14 additions and 12 deletions
+1 -1
View File
@@ -688,7 +688,7 @@ class CDIModel(t.nn.Module):
else:
with plt.rc_context({'figure.raise_window': False}):
fig = plt.figure(plot['title'],
figsize = panel_def.get('figure_size', None)
figsize = figsize,
constrained_layout=True)
try:
+2 -2
View File
@@ -716,9 +716,9 @@ def plot_nanomap_with_images(translations, get_image_func, values=None, mask=Non
# mode, i.e. on a figure that already has this thing showing.
if fig is None:
fig = plt.figure(figsize=(20,4.5), constrained_layout=True)
fig = plt.figure(figsize=(8,5.3), constrained_layout=True)
else:
fig = plt.figure(fig.number, figsize=(20,4.5), constrained_layout=True)
fig = plt.figure(fig.number, figsize=(8,5.3), constrained_layout=True)
fig.clear()
if hasattr(fig, 'nanomap_cids'):
for cid in fig.nanomap_cids: