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")