mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
correct white and add axes with ms and 100 frame ticks
This commit is contained in:
parent
b3f99a70be
commit
f7fd1d70a2
1 changed files with 8 additions and 1 deletions
|
@ -7,7 +7,7 @@ cyan = ( 0,255,255)
|
|||
red = (255, 0, 0)
|
||||
magenta = (255, 0,255)
|
||||
yellow = (255,255, 0)
|
||||
white = (255,255, 0)
|
||||
white = (255,255,255)
|
||||
|
||||
def plot (x, y, color):
|
||||
y = height - 1 - y
|
||||
|
@ -88,6 +88,13 @@ for x in range (width):
|
|||
ravg += times[x]/float(ravg_span)
|
||||
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.write ("P6\n")
|
||||
f.write ("#File written by timeframes.py\n")
|
||||
|
|
Loading…
Reference in a new issue