Skip to content

Commit

Permalink
fix(backport): Correct variable assignment for limit band artists (#2427
Browse files Browse the repository at this point in the history
)

* Backport PR #2411
* Assign the one and two sigma band artists to the correct objects.

Co-authored-by: Lukas <lukas.heinrich@gmail.com>
  • Loading branch information
matthewfeickert and lukasheinrich committed Jan 5, 2024
1 parent 0f440e8 commit 6bf1f4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pyhf/contrib/viz/brazil.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 6bf1f4a

Please sign in to comment.