2 #-----------------------------------------------------------------------------
3 # Copyright (C) 2014 iZsh <izsh at fail0verflow.com>
5 # This code is licensed to you under the terms of the GNU GPL, version 2 or,
6 # at your option, any later version. See the LICENSE.txt file for the text of
8 #-----------------------------------------------------------------------------
10 import matplotlib
.pyplot
as plt
13 if len(sys
.argv
) != 2:
14 print "Usage: %s <basename>" % sys
.argv
[0]
17 BASENAME
= sys
.argv
[1]
19 nx
= numpy
.fromfile(BASENAME
+ ".time")
24 sig
= open(BASENAME
+ ".filtered").read()
25 sig
= map(lambda x
: ord(x
), sig
)
27 min_vals
= open(BASENAME
+ ".min").read()
28 min_vals
= map(lambda x
: ord(x
), min_vals
)
30 max_vals
= open(BASENAME
+ ".max").read()
31 max_vals
= map(lambda x
: ord(x
), max_vals
)
33 states
= open(BASENAME
+ ".state").read()
34 states
= map(lambda x
: ord(x
) * 10 + 65, states
)
36 toggles
= open(BASENAME
+ ".toggle").read()
37 toggles
= map(lambda x
: ord(x
) * 10 + 80, toggles
)
39 high
= open(BASENAME
+ ".high").read()
40 high
= map(lambda x
: ord(x
), high
)
41 highz
= open(BASENAME
+ ".highz").read()
42 highz
= map(lambda x
: ord(x
), highz
)
43 lowz
= open(BASENAME
+ ".lowz").read()
44 lowz
= map(lambda x
: ord(x
), lowz
)
45 low
= open(BASENAME
+ ".low").read()
46 low
= map(lambda x
: ord(x
), low
)