From e957583de545a3f54f6aab1168e0e0deecb5dcb6 Mon Sep 17 00:00:00 2001 From: Joan Date: Fri, 20 Mar 2026 13:34:51 +0100 Subject: [PATCH] Draw consumption line on top of production fill --- matrix.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/matrix.py b/matrix.py index 2ae773d..2e2ffdf 100644 --- a/matrix.py +++ b/matrix.py @@ -770,13 +770,13 @@ class Matrix64Display(SampleBase): prev_y = pixel_y - # Draw consumption first (behind), then production (on top) - if self.consumption_history: - cons_buckets = bucket_data(self.consumption_history) - draw_curve(cons_buckets, 80, 160, 255, 15, 25, 50) + # Draw production fill first, then consumption line on top if self.pv_history: pv_buckets = bucket_data(self.pv_history) draw_curve(pv_buckets, 255, 200, 0, 60, 50, 0) + if self.consumption_history: + cons_buckets = bucket_data(self.consumption_history) + draw_curve(cons_buckets, 80, 160, 255, 0, 0, 0, fill=False) if self.auto_cycle: graphics.DrawText(canvas, small_font, 58, 62, label_color, "A")