mirror of
https://github.com/cdtools-developers/cdtools.git
synced 2026-09-19 17:12:10 +02:00
Made a few more updates to some example scripts, to show the panel plot mode
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user