-
Notifications
You must be signed in to change notification settings - Fork 0
/
plotsat.py
43 lines (36 loc) · 1.79 KB
/
plotsat.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import matplotlib.pyplot as plt
import numpy as np
plt.switch_backend('agg')
data = [
[1000, 10, 895.6431894937357, 0.0007927246533405423],
[1000, 20, 946.1158300793879, 0.002611946712505363],
[1000, 50, 979.9824102119135, 0.0020795293162913387],
[2000, 10, 1788.596198315907, 0.0002750764645910202],
[2000, 20, 1887.8477897281775, 0.0005571132392141323],
[2000, 50, 1961.2859497699096, 0.0020905911837273907],
[4000, 10, 3575.1394879031104, 8.892341006449556e-05],
[4000, 20, 3782.8163070510127, 0.0007366310160427858],
[4000, 50, 3919.371524280974, 0.00022016330372856175],
[8000, 10, 7162.348162842187, 3.554139922289323e-05],
[8000, 20, 7578.071772157542, 0.00028594229204481],
[8000, 50, 7839.859745054552, 0.0002892624184646273],
[16000, 10, 14346.804375190766, 8.37866882139764e-05],
[16000, 20, 15175.8415352293, 0.00012143359530289288],
[16000, 50, 15681.933910716909, 0.0002489623911301155],
[32000, 10, 28973.136750293215, 0.0],
[32000, 20, 30398.23770614195, 6.695334034657562e-05],
[32000, 50, 31368.120845374862, 8.110257603972926e-05],
[64000, 10, 57735.18648860408, 2.9002010954854994e-06],
[64000, 20, 60533.430704908686, 1.711563870238564e-05],
[64000, 50, 62720.43216140066, 5.3195224719097214e-05]
]
data1 = np.array([ [x[0],x[3]] for x in data if x[1] == 10])
data2 = np.array([ [x[0],x[3]] for x in data if x[1] == 20])
data3 = np.array([ [x[0],x[3]] for x in data if x[1] == 50])
plt.semilogx(data1[:, 0], data1[:, 1], marker='.', markersize=10, label=r"$M$ = 10")
plt.semilogx(data2[:, 0], data2[:, 1], marker='.', markersize=10, label=r"$M$ = 20")
plt.semilogx(data3[:, 0], data3[:, 1], marker='.', markersize=10, label=r"$M$ = 50")
# plt.ylim((0.9998 , 1))
plt.grid(True)
plt.legend()
plt.savefig("sat.png", dpi=1200)