From 2ad0319e3090562a991e073d2ae638f075c75906 Mon Sep 17 00:00:00 2001 From: Joan Date: Fri, 20 Mar 2026 13:36:25 +0100 Subject: [PATCH] Scale PV curve graph to production max only --- matrix.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/matrix.py b/matrix.py index 2e2ffdf..19040cb 100644 --- a/matrix.py +++ b/matrix.py @@ -715,12 +715,10 @@ class Matrix64Display(SampleBase): graphics.DrawText(canvas, small_font, 10, 38, label_color, "Sin datos") return - # Find max across both datasets for shared scale + # Scale to PV production max (main focus of this view) max_val = 1 if self.pv_history: max_val = max(max_val, max(p for _, p in self.pv_history)) - if self.consumption_history: - max_val = max(max_val, max(p for _, p in self.consumption_history)) # Labels above graph area (with margin) if max_val >= 1000: