aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRncLsn <rnc.lsn@gmail.com>2015-07-06 15:07:13 +0100
committerRncLsn <rnc.lsn@gmail.com>2015-07-06 15:07:13 +0100
commit9a5c40d0569db963dcb5e2e897831142b98cd7b0 (patch)
tree1a77d5d2c4b704d7afcff60c0719538ac6ffac37
parent39b60d4225f5efa4e0287a2c6ce69d90391c69db (diff)
downloadACQuA-9a5c40d0569db963dcb5e2e897831142b98cd7b0.tar.gz
ACQuA-9a5c40d0569db963dcb5e2e897831142b98cd7b0.zip
Added script for plotting times.
-rw-r--r--scripts/plottimes.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/scripts/plottimes.py b/scripts/plottimes.py
new file mode 100644
index 0000000..767374f
--- /dev/null
+++ b/scripts/plottimes.py
@@ -0,0 +1,29 @@
1import sys
2import numpy as np
3import matplotlib.pyplot as plt
4import json
5
6def main(input_filename_1, input_filename_2):
7
8 with open(input_filename_1, 'r') as f:
9 data_1 = json.load(f)
10
11 with open(input_filename_2, 'r') as f:
12 data_2 = json.load(f)
13
14 times_1 = [(x, data_1[x]['totalTime']) for x in sorted([y for y in data_1])]
15 times_2 = [(x, data_2[x]['totalTime']) for x in sorted([y for y in data_2])]
16
17 x = np.array(zip(*times_1)[0])
18 y_1 = np.array(zip(*times_1)[1])
19 y_2 = np.array(zip(*times_2)[1])
20 colors_1 = '#eeefff'
21 colors_2 = '#11ee55'
22
23 plt.scatter(x, y_1, c=colors_1, marker=',')
24 plt.scatter(x, y_2, c=colors_2, marker='v')
25 plt.show()
26
27
28if __name__ == '__main__':
29 main(sys.argv[1], sys.argv[2])