From b1ea85bd5a07861a06d3ff14a870b868c97e0a48 Mon Sep 17 00:00:00 2001 From: Dan Howe Date: Thu, 12 May 2022 11:44:09 +0200 Subject: [PATCH] Get min and max values based on p5 and p95 --- slr/get_slr_distributions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slr/get_slr_distributions.py b/slr/get_slr_distributions.py index 647ac39..bc4dc85 100644 --- a/slr/get_slr_distributions.py +++ b/slr/get_slr_distributions.py @@ -47,8 +47,8 @@ percentiles = dff.columns.values / 100 for i, row in dff.iterrows(): values = row.values - x_min = values.min() - 0.2 - x_max = values.max() + 0.2 + x_min = row[5] + (row[5] - row[50]) + x_max = row[95] + (row[95] - row[50]) x = np.linspace(x_min, x_max, num=1000) # Fit distribution