Skip to content

Commit

Permalink
get_best_fit_mflike: handle plots if only 1 array
Browse files Browse the repository at this point in the history
  • Loading branch information
zatkins2 committed Sep 1, 2024
1 parent 706459e commit 98fe227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project/ana_cov_comp/python/get_best_fit_mflike.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 98fe227

Please sign in to comment.