From e790f63552e26d44dd2150366c6ead2f7aa8450c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Le=20Guyader?= <loic.le.guyader@xfel.eu> Date: Fri, 10 Jun 2022 10:26:31 +0200 Subject: [PATCH] Fix GridSpec constrained layout warning --- src/toolbox_scs/routines/boz.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/toolbox_scs/routines/boz.py b/src/toolbox_scs/routines/boz.py index fbc2069..9d64f30 100644 --- a/src/toolbox_scs/routines/boz.py +++ b/src/toolbox_scs/routines/boz.py @@ -646,7 +646,8 @@ def inspect_rois(data_mean, rois, threshold=None, allrois=False): fig = plt.figure(figsize=(5, 3)) grid = plt.GridSpec(2, 2, width_ratios=(1, 4), height_ratios=(2, 1), # left=0.1, right=0.9, bottom=0.1, top=0.9, - wspace=0.05, hspace=0.05) + wspace=0.05, hspace=0.05, + figure=fig) main_ax = fig.add_subplot(grid[0, 1]) y = fig.add_subplot(grid[0, 0], xticklabels=[], sharey=main_ax) x = fig.add_subplot(grid[1, 1], yticklabels=[], sharex=main_ax) -- GitLab