From 98fe22778e8187e3ac08d1f7480cf6b834a7ae60 Mon Sep 17 00:00:00 2001 From: Zachary Atkins Date: Sat, 31 Aug 2024 22:22:46 -0400 Subject: [PATCH] get_best_fit_mflike: handle plots if only 1 array --- project/ana_cov_comp/python/get_best_fit_mflike.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/ana_cov_comp/python/get_best_fit_mflike.py b/project/ana_cov_comp/python/get_best_fit_mflike.py index aeeec2a8..5e7b42e5 100644 --- a/project/ana_cov_comp/python/get_best_fit_mflike.py +++ b/project/ana_cov_comp/python/get_best_fit_mflike.py @@ -120,7 +120,7 @@ fg_components["tt"].append(comp) for mode in ["tt", "te", "tb", "ee", "eb", "bb"]: - fig, axes = plt.subplots(narrays, narrays, sharex=True, sharey=True, figsize=(16, 16)) + fig, axes = plt.subplots(narrays, narrays, sharex=True, sharey=True, figsize=(16, 16), squeeze=False) indices = np.triu_indices(narrays)[::-1] for i, cross in enumerate(spectra_list): name1, name2 = cross.split("x")