From 06109a0af1481d148d208e89f4f7c72213eaddc4 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Tue, 6 Feb 2024 16:49:25 +0100 Subject: [PATCH] fix: display histogram upper bound correctly --- squiggle_more.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/squiggle_more.c b/squiggle_more.c index 0fc681d..c49c2fc 100644 --- a/squiggle_more.c +++ b/squiggle_more.c @@ -397,7 +397,7 @@ void array_print_90_ci_histogram(double* xs, int n_samples, int n_bins) } printf(" %d\n", bins[i]); } - printf("(%*.*f, %*s): ", 4 + decimalPlaces, decimalPlaces, min_value, 6 + decimalPlaces, "+∞"); + printf("(%*.*f, %*s): ", 4 + decimalPlaces, decimalPlaces, max_value, 6 + decimalPlaces, "+∞"); int marks_above_max = (int)(above_max * scale); for (int j = 0; j < marks_above_max; j++) { printf("█");