Skip to content

Commit 6bf1f4a

Browse files
fix(backport): Correct variable assignment for limit band artists (#2427)
* Backport PR #2411 * Assign the one and two sigma band artists to the correct objects. Co-authored-by: Lukas <lukas.heinrich@gmail.com>
1 parent 0f440e8 commit 6bf1f4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pyhf/contrib/viz/brazil.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,14 @@ def plot_brazil_band(test_pois, cls_obs, cls_exp, test_size, ax, **kwargs):
129129
label=None if idx != 2 else r"$\mathrm{CL}_{s,\mathrm{exp}}$",
130130
)
131131
cls_exp_lines.append(_cls_exp_line)
132-
one_sigma_band = ax.fill_between(
132+
two_sigma_band = ax.fill_between(
133133
test_pois,
134134
cls_exp[0],
135135
cls_exp[-1],
136136
facecolor="yellow",
137137
label=r"$\pm2\sigma$ $\mathrm{CL}_{s,\mathrm{exp}}$",
138138
)
139-
two_sigma_band = ax.fill_between(
139+
one_sigma_band = ax.fill_between(
140140
test_pois,
141141
cls_exp[1],
142142
cls_exp[-2],

0 commit comments

Comments
 (0)