From f62816a250d412d7ee445a6bc6ca64f0fdeb914a Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Sun, 1 Jan 2023 01:05:38 +0100 Subject: [PATCH] Fix linear yscale --- dashboard.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dashboard.py b/dashboard.py index 1f69bcf..0294f45 100644 --- a/dashboard.py +++ b/dashboard.py @@ -164,7 +164,7 @@ class TimeSeries(Widget): / math.log(max_value / min_value) ) * 200 elif self.yscale == "linear": - return (1 - v/max_value) * 200, + return (1 - v/max_value) * 200 else: raise ValueError(f"Unknown yscale {self.yscale}") @@ -413,6 +413,7 @@ class TimeSeries(Widget): html += f"" html += f"{tm['t_h']}" for tm in self.y_tickmarks: + log.debug("tm = %s", tm) html += f"" html += f"{tm['v_h']}" for v in v_data: