-
Notifications
You must be signed in to change notification settings - Fork 0
/
GraphParamSweep.py
44 lines (37 loc) · 1.84 KB
/
GraphParamSweep.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
43
44
import numpy as np
import matplotlib.pyplot as plt
# Generate data...
x = np.arange(0.0,1.1,0.1)
for k in range(10):
x_temp = np.append(x, np.arange(0.0,1.1,0.1))
x = x_temp
y = np.array([0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.1,0.1,
0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.2,0.2,
0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.3,0.3,0.3,0.3,
0.3,0.3,0.3,0.3,0.3,0.3,0.3,0.4,0.4,0.4,0.4,0.4,
0.4,0.4,0.4,0.4,0.4,0.4,0.5,0.5,0.5,0.5,0.5,0.5,
0.5,0.5,0.5,0.5,0.5,0.6,0.6,0.6,0.6,0.6,0.6,0.6,
0.6,0.6,0.6,0.6,0.7,0.7,0.7,0.7,0.7,0.7,0.7,
0.7,0.7,0.7,0.7,0.8,0.8,0.8,0.8,0.8,0.8,0.8,0.8,
0.8,0.8,0.8,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,
0.9,0.9,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0
,1.0])
q = np.array([39.0,53.0,30.0,45.0,34.0,48.0,41.0,43.0,49.0,40.0,49.0,
226.0,247.0,237.0,241.0,274.0,268.0,261.0,283.0,283.0,312.0,295.0,
217.0,241.0,224.0,260.0,231.0,279.0,284.0,304.0,266.0,302.0,279.0,
216.0,244.0,248.0,257.0,264.0,267.0,265.0,290.0,304.0,287.0,327.0,
226.0,218.0,235.0,255.0,257.0,262.0,303.0,285.0,297.0,292.0,311.0,
223.0,241.0,260.0,253.0,255.0,268.0,295.0,284.0,305.0,306.0,284.0,
233.0,230.0,233.0,241.0,264.0,275.0,294.0,276.0,264.0,289.0,305.0,
223.0,249.0,270.0,254.0,296.0,260.0,285.0,295.0,253.0,304.0,309.0,
222.0,210.0,247.0,247.0,246.0,248.0,289.0,278.0,296.0,303.0,304.0,
222.0,223.0,252.0,266.0,287.0,291.0,264.0,320.0,257.0,288.0,316.0,
231.0,222.0,246.0,255.0,272.0,278.0,274.0,294.0,289.0,329.0,321.0])
print(x)
print(y)
#Plot...
plt.scatter(x, y, s=500, c=q)
#plt.gray()
plt.show()
#226.0,247.0,237.0,241.0,274.0,268.0,261.0,283.0,283.0,
# 312.0,295.0