-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolor_beizhu.py
33 lines (28 loc) · 1.26 KB
/
color_beizhu.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
import matplotlib
import matplotlib.pyplot as plt
color_list = ['#845EC2', '#B39CD0', '#D65DB1', '#4FFBDF', '#FFC75F',
'#D5CABD', '#B0A8B9', '#FF6F91', '#F9F871', '#D7E8F0',
'#60DB73', '#E8575A', '#008B74', '#00C0A3', '#FF9671',
'#93DEB1']
"""
Arousal Behavior Class Combine
1、Right turning:[1] (#845EC2) 2、Left turning:[26] (#B39CD0)
3、Sniffing:[2, 4, 10, 11, 12, 16, 22, 25] (#D65DB1)
4、Walking:[3, 6, 7, 19, 30] (#4FFBDF) 5、Trembling:[5, 15, 32, 40] (#FFC75F)
6、Climbing:[8, 29] (#D5CABD) 7、Falling:[9] (#B0A8B9)
8、Immobility:[13, 20, 33, 34] (#FF6F91) 9、Paralysis:[14, 35] (#F9F871)
10、Standing:[17] (#D7E8F0) 11、Trotting:[18, 31] (#60DB73)
12、Grooming:[21] (#E8575A) 13、Flight:[23, 38] (#008B74)
14、Running:[24, 36] (#00C0A3) 15、LORR:[27, 28, 39] (#FF9671)
16、Stepping:[37] (#93DEB1)
"""
num = 15
fig = plt.figure()
ax = fig.add_subplot(111)
print(color_list[num])
rect1 = matplotlib.patches.Rectangle((-200, -100),
400, 200,
color=color_list[num])
ax.add_patch(rect1)
ax.axis('off')
plt.show()