-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex3.py
More file actions
43 lines (30 loc) · 817 Bytes
/
Copy pathex3.py
File metadata and controls
43 lines (30 loc) · 817 Bytes
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
import numpy as np
import matplotlib.pyplot as plt
from sal_timer import timer
def plot_1():
# ...
data = {
'a': np.arange(50),
'c': np.random.randint(0, 50, 50),
'd': np.random.randn(50)
}
data['b'] = data['a'] + 10 * np.random.randn(50)
data['d'] = np.abs(data['d']) * 100
# ...
# x : x
# y : y
# c : color
# s : size
plt.scatter(x='a', y='b', c='c', s='d', data=data)
# ...
plt.xlabel('entry a')
plt.ylabel('entry b')
plt.show()
@timer
def main():
plot_1()
if __name__ == '__main__':
print('========================================== START ==========================================')
#...
main()
print('========================================== END ============================================')