Skip to content

Commit

Permalink
Merge pull request #4101 from registerrier/counts_stat_doc
Browse files Browse the repository at this point in the history
Correct CountsStatistic documentation plots
  • Loading branch information
adonath committed Sep 21, 2022
2 parents c1293b9 + 5f52095 commit 82b1bb3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ help:
@echo ' make clean Remove auto-generated files'
@echo ' pytest Run Gammapy tests (give folder or filename and options)'
@echo ' make test-cov Run all tests and measure coverage'
@echo ' make docs Build documentation locally'
@echo ' make docs-sphinx Build documentation locally'
@echo ''

clean:
Expand Down
8 changes: 4 additions & 4 deletions docs/user-guide/stats/plot_cash_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@

plt.hlines(
count_statistic.stat_max + 1,
xmin=excess + errn,
xmin=excess - errn,
xmax=excess + errp,
linestyle="dotted",
color="r",
label="1 sigma (68% C.L.)",
)
plt.vlines(
excess + errn,
excess - errn,
ymin=ymin,
ymax=count_statistic.stat_max + 1,
linestyle="dotted",
Expand All @@ -50,14 +50,14 @@

plt.hlines(
count_statistic.stat_max + 4,
xmin=excess + errn_2sigma,
xmin=excess - errn_2sigma,
xmax=excess + errp_2sigma,
linestyle="dashed",
color="b",
label="2 sigma (95% C.L.)",
)
plt.vlines(
excess + errn_2sigma,
excess - errn_2sigma,
ymin=ymin,
ymax=count_statistic.stat_max + 4,
linestyle="dashed",
Expand Down
8 changes: 4 additions & 4 deletions docs/user-guide/stats/plot_wstat_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@

plt.hlines(
count_statistic.stat_max + 1,
xmin=excess + errn,
xmin=excess - errn,
xmax=excess + errp,
linestyle="dotted",
color="r",
label="1 sigma (68% C.L.)",
)
plt.vlines(
excess + errn,
excess - errn,
ymin=ymin,
ymax=count_statistic.stat_max + 1,
linestyle="dotted",
Expand All @@ -51,14 +51,14 @@

plt.hlines(
count_statistic.stat_max + 4,
xmin=excess + errn_2sigma,
xmin=excess - errn_2sigma,
xmax=excess + errp_2sigma,
linestyle="dashed",
color="b",
label="2 sigma (95% C.L.)",
)
plt.vlines(
excess + errn_2sigma,
excess - errn_2sigma,
ymin=ymin,
ymax=count_statistic.stat_max + 4,
linestyle="dashed",
Expand Down

0 comments on commit 82b1bb3

Please sign in to comment.