fix: display histogram upper bound correctly

This commit is contained in:
NunoSempere 2024-02-06 16:49:25 +01:00
parent 9917941048
commit 06109a0af1

View File

@ -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("");