mirror of
https://github.com/cdtools-developers/cdtools.git
synced 2026-11-09 07:44:02 +01:00
Fix an annoying warning coming from double-setting the figsize
This commit is contained in:
1 parent
29656fd78e
commit
f979388280
1 file changed
+5
-1
@@ -853,7 +853,11 @@ def plot_nanomap_with_images(translations, get_image_func, values=None, mask=Non
|
||||
if fig is None:
|
||||
fig = plt.figure(figsize=(8,5.3), constrained_layout=True)
|
||||
else:
|
||||
fig = plt.figure(fig.number, figsize=(8,5.3), constrained_layout=True)
|
||||
if plt.fignum_exists(fig.number):
|
||||
fig = plt.figure(fig.number)
|
||||
else:
|
||||
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