correct white and add axes with ms and 100 frame ticks

This commit is contained in:
Bill Currie 2003-08-12 16:04:00 +00:00
parent b3f99a70be
commit f7fd1d70a2

View file

@ -7,7 +7,7 @@ cyan = ( 0,255,255)
red = (255, 0, 0) red = (255, 0, 0)
magenta = (255, 0,255) magenta = (255, 0,255)
yellow = (255,255, 0) yellow = (255,255, 0)
white = (255,255, 0) white = (255,255,255)
def plot (x, y, color): def plot (x, y, color):
y = height - 1 - y y = height - 1 - y
@ -88,6 +88,13 @@ for x in range (width):
ravg += times[x]/float(ravg_span) ravg += times[x]/float(ravg_span)
hline (0, width - 1, average, blue) hline (0, width - 1, average, blue)
hline (0, width - 1, 0, white)
vline (0, 0, height - 1, white)
for y in range (0, height - 1, 10):
hline (0, 3, y, white)
for x in range (0, width - 1, 100):
vline (x, 0, 3, white)
f = open ("timeframes.ppm", "wb") f = open ("timeframes.ppm", "wb")
f.write ("P6\n") f.write ("P6\n")
f.write ("#File written by timeframes.py\n") f.write ("#File written by timeframes.py\n")