From d0825581af4eb34226fd020264fbf063dd86c28f Mon Sep 17 00:00:00 2001 From: Ozzie Gooen Date: Wed, 18 Mar 2020 19:13:12 +0000 Subject: [PATCH] Fix to make sure only top discrete items are truncated --- src/distributions/Distributions.re | 1 + 1 file changed, 1 insertion(+) diff --git a/src/distributions/Distributions.re b/src/distributions/Distributions.re index 4e5bdc3a..e044bb8f 100644 --- a/src/distributions/Distributions.re +++ b/src/distributions/Distributions.re @@ -189,6 +189,7 @@ module Discrete = { t |> XYShape.T.zip |> XYShape.T.Zipped.sortByY + |> Belt.Array.reverse |> Belt.Array.slice(_, ~offset=0, ~len=i) |> XYShape.T.Zipped.sortByX |> XYShape.T.fromZippedArray;