From 4fdd6d6c3fb3783be9985e568c9b98d53bedbdd0 Mon Sep 17 00:00:00 2001 From: Lukas Date: Thu, 4 Jan 2024 23:17:14 +0100 Subject: [PATCH] fix: Correct variable assignment for limit band artists (#2411) * Assign the one and two sigma band artists to the correct objects. - Amends PR https://github.com/scikit-hep/pyhf/pull/1377 --- src/pyhf/contrib/viz/brazil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pyhf/contrib/viz/brazil.py b/src/pyhf/contrib/viz/brazil.py index a8955f20eb..ad39a7648d 100644 --- a/src/pyhf/contrib/viz/brazil.py +++ b/src/pyhf/contrib/viz/brazil.py @@ -129,14 +129,14 @@ def plot_brazil_band(test_pois, cls_obs, cls_exp, test_size, ax, **kwargs): label=None if idx != 2 else r"$\mathrm{CL}_{s,\mathrm{exp}}$", ) cls_exp_lines.append(_cls_exp_line) - one_sigma_band = ax.fill_between( + two_sigma_band = ax.fill_between( test_pois, cls_exp[0], cls_exp[-1], facecolor="yellow", label=r"$\pm2\sigma$ $\mathrm{CL}_{s,\mathrm{exp}}$", ) - two_sigma_band = ax.fill_between( + one_sigma_band = ax.fill_between( test_pois, cls_exp[1], cls_exp[-2],