Skip to content

Commit

Permalink
fix(backport): Correct variable assignment for limit band artists
Browse files Browse the repository at this point in the history
* Backport PR https://github.com/scikit-hep/pyhf/pull/ 2411
* Assign the one and two sigma band artists to the correct objects.
   - Amends PR https://github.com/scikit-hep/pyhf/pull/ 1377
  • Loading branch information
lukasheinrich authored and matthewfeickert committed Jan 5, 2024
1 parent 0f440e8 commit ebd5629
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 ebd5629

Please sign in to comment.