Skip to content

Commit 72f7c70

Browse files
committed
forced errorbar limit arguments of consistency plot to be positive, which caused problems with precision rounding
1 parent 616fe5e commit 72f7c70

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

csep/utils/plots.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1645,7 +1645,8 @@ def plot_poisson_consistency_test(eval_results, normalize=False,
16451645

16461646
if not numpy.isinf(
16471647
observed_statistic): # Check if test result does not diverges
1648-
percentile_lims = numpy.array([[mean - plow, phigh - mean]]).T
1648+
percentile_lims = numpy.abs(numpy.array([[mean - plow,
1649+
phigh - mean]]).T)
16491650
ax.plot(observed_statistic, index,
16501651
_get_marker_style(observed_statistic, (plow, phigh),
16511652
one_sided_lower))

0 commit comments

Comments
 (0)