From 6bf1f4adfb1a17d5bb719c55c0974be4532bfe2d Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Fri, 5 Jan 2024 02:40:45 -0600 Subject: [PATCH] fix(backport): Correct variable assignment for limit band artists (#2427) * Backport PR https://github.com/scikit-hep/pyhf/pull/2411 * Assign the one and two sigma band artists to the correct objects. Co-authored-by: Lukas --- 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],