Draw consumption line on top of production fill
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user