Commits

David Mandelin  committed 845ecaf

disable bottom bar on cooked mode for now

  • Participants
  • Parent commits 0b87096

Comments (0)

Files changed (1)

File scripts/vis.py

         t, s = struct.unpack_from('QB', s)
         ts.append((s, t))
 
-    draw(dt, ts, outfile)
+    draw(dt, ts, outfile, False)
 
-def draw(total, ts, outfile):
+def draw(total, ts, outfile, BAR3=True):
     W, H, HA, HB = 1600, 256, 64, 64
     HZ = H + 4 + HA + 4 + HB
     im = Image.new('RGBA', (W, HZ + 20))
 
     t = 0
     ppt = 1.0 * W / total
-    for dt, c in zip(hist.state_summary, states):
-        x1 = int(t * ppt)
-        y1 = H + 4 + HA + 5 
-        x2 = int((t+dt) * ppt)
-        y2 = H + 4 + HA + 4 + HB
-        d.rectangle((x1, y1, x2, y2), fill=c)
-        t += dt
+    if BAR3:
+        for dt, c in zip(hist.state_summary, states):
+            x1 = int(t * ppt)
+            y1 = H + 4 + HA + 5 
+            x2 = int((t+dt) * ppt)
+            y2 = H + 4 + HA + 4 + HB
+            d.rectangle((x1, y1, x2, y2), fill=c)
+            t += dt
 
     # Time lines
     i = 0