From 783914c7fe462264db9a07657679aab796cdc393 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 26 Jun 2022 10:41:21 -0400 Subject: [PATCH] Better comment, use -inf as startup min --- piker/ui/_compression.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/piker/ui/_compression.py b/piker/ui/_compression.py index 41dcf454..c66b3e58 100644 --- a/piker/ui/_compression.py +++ b/piker/ui/_compression.py @@ -314,7 +314,8 @@ def _m4( # set all y-values to the first value passed in. y_out[bincount] = ys[0] - mx: float = 0 + # full input y-data mx and mn + mx: float = -np.inf mn: float = np.inf # compute OHLC style max / min values per window sized x-frame.