-
Notifications
You must be signed in to change notification settings - Fork 0
/
palettes.pt
186 lines (153 loc) · 6.1 KB
/
palettes.pt
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
# Enable the use of macros
set macros
_miafunza(x)= x< 5./6 ? 2./3 - 4./5*x: 1- (x-5./6)
_laltrafunza(x)=x**0.4
PRAINBOWG = 'set palette model HSV functions _miafunza(gray), 1 , _laltrafunza(gray)'
PBLUERED2 = 'set palette model RGB defined (0 "#023858", 0.25 "#0570B0", 0.5 "#74A9CF", 0.85 "#D0D1E6", 1 "#FFF7FB", 1 "#FFF7EC", 1.25 "#FDD49E" ,1.5 "#FC8D59", 1.75 "#D7301F", 2 "#7F0000")'
PCOLDBHOT = 'set palette model RGB defined (0 "white", 0.25 "cyan", 0.625 "blue", 1 "black", 1.375 "red", 1.75 "yellow", 2 "white")'
PCOLDWHOT = 'set palette model RGB defined (0 "black", 0.15 "blue", 0.85 "cyan", 1 "white", 1.15 "yellow", 1.85 "red", 2 "black")'
PBCOLD = 'set palette model RGB defined (0 "black", 0.15 "blue", 0.85 "cyan", 1 "white")'
PBHOT = 'set palette model RGB defined (0 "black", 0.15 "red", 0.85 "yellow", 1 "white")'
PWCOLD = 'set palette model RGB defined (0 "white", 0.15 "cyan", 0.85 "blue", 1 "black")'
PWHOT = 'set palette model RGB defined (0 "white", 0.15 "yellow", 0.85 "red", 1 "black")'
#***********MATLAB COLOR SCALE****************
PMATLAB = "set palette model RGB defined (0 0.0 0.0 0.5,\
1 0.0 0.0 1.0,\
2 0.0 0.5 1.0,\
3 0.0 1.0 1.0,\
4 0.5 1.0 0.5,\
5 1.0 1.0 0.0,\
6 1.0 0.5 0.0,\
7 1.0 0.0 0.0,\
8 0.5 0.0 0.0)"
#***********MATLAB WITH BLACK COLOR SCALE****************
PMATLAB_WBLACK = "set palette model RGB defined (\
0 0.0 0.0 0.0,\
0.001 0.0 0.0 0.0,\
0.001 0.0 0.0 0.5,\
1 0.0 0.0 1.0,\
2 0.0 0.5 1.0,\
3 0.0 1.0 1.0,\
4 0.5 1.0 0.5,\
5 1.0 1.0 0.0,\
6 1.0 0.5 0.0,\
7 1.0 0.0 0.0,\
8 0.5 0.0 0.0)"
#***********MATLAB WITH WHITE COLOR SCALE****************
PMATLAB_WWHITE = "set palette model RGB defined (\
0 1.0 1.0 1.0,\
0.001 1.0 1.0 1.0,\
0.001 0.0 0.0 0.2,\
1 0.0 0.0 1.0,\
2 0.0 0.5 1.0,\
3 0.0 1.0 1.0,\
4 0.5 1.0 0.5,\
5 1.0 1.0 0.0,\
6 1.0 0.5 0.0,\
7 1.0 0.0 0.0,\
8 0.5 0.0 0.0)"
#***********HEATMAP COLOR SCALE****************
PHEATMAP = "set palette model RGB defined( \
0 0.2314 0.2980 0.7529, \
0.03125 0.2667 0.3529 0.8000, \
0.0625 0.3020 0.4078 0.8431, \
0.09375 0.3412 0.4588 0.8824, \
0.125 0.3843 0.5098 0.9176, \
0.15625 0.4235 0.5569 0.9451, \
0.1875 0.4667 0.6039 0.9686, \
0.21875 0.5098 0.6471 0.9843, \
0.25 0.5529 0.6902 0.9961, \
0.28125 0.5961 0.7255 1.0000, \
0.3125 0.6392 0.7608 1.0000, \
0.34375 0.6824 0.7882 0.9922, \
0.375 0.7216 0.8157 0.9765, \
0.40625 0.7608 0.8353 0.9569, \
0.4375 0.8000 0.8510 0.9333, \
0.46875 0.8353 0.8588 0.9020, \
0.5 0.8667 0.8667 0.8667, \
0.53125 0.8980 0.8471 0.8196, \
0.5625 0.9255 0.8275 0.7725, \
0.59375 0.9451 0.8000 0.7255, \
0.625 0.9608 0.7686 0.6784, \
0.65625 0.9686 0.7333 0.6275, \
0.6875 0.9686 0.6941 0.5804, \
0.71875 0.9686 0.6510 0.5294, \
0.75 0.9569 0.6039 0.4824, \
0.78125 0.9451 0.5529 0.4353, \
0.8125 0.9255 0.4980 0.3882, \
0.84375 0.8980 0.4392 0.3451, \
0.875 0.8706 0.3765 0.3020, \
0.90625 0.8353 0.3137 0.2588, \
0.9375 0.7961 0.2431 0.2196, \
0.96875 0.7529 0.1569 0.1843, \
1 0.7059 0.0157 0.1490)"
#***********HEATMAP WITH BLACK COLOR SCALE****************
PHEATMAP_WBLACK = "set palette model RGB defined(\
0 0 0 0,\
0.0001 0 0 0,\
0.0001 0.2314 0.2980 0.7529,\
0.03125 0.2667 0.3529 0.8000,\
0.0625 0.3020 0.4078 0.8431,\
0.09375 0.3412 0.4588 0.8824,\
0.125 0.3843 0.5098 0.9176,\
0.15625 0.4235 0.5569 0.9451,\
0.1875 0.4667 0.6039 0.9686,\
0.21875 0.5098 0.6471 0.9843,\
0.25 0.5529 0.6902 0.9961,\
0.28125 0.5961 0.7255 1.0000,\
0.3125 0.6392 0.7608 1.0000,\
0.34375 0.6824 0.7882 0.9922,\
0.375 0.7216 0.8157 0.9765,\
0.40625 0.7608 0.8353 0.9569,\
0.4375 0.8000 0.8510 0.9333,\
0.46875 0.8353 0.8588 0.9020,\
0.5 0.8667 0.8667 0.8667,\
0.53125 0.8980 0.8471 0.8196,\
0.5625 0.9255 0.8275 0.7725,\
0.59375 0.9451 0.8000 0.7255,\
0.625 0.9608 0.7686 0.6784,\
0.65625 0.9686 0.7333 0.6275,\
0.6875 0.9686 0.6941 0.5804,\
0.71875 0.9686 0.6510 0.5294,\
0.75 0.9569 0.6039 0.4824,\
0.78125 0.9451 0.5529 0.4353,\
0.8125 0.9255 0.4980 0.3882,\
0.84375 0.8980 0.4392 0.3451,\
0.875 0.8706 0.3765 0.3020,\
0.90625 0.8353 0.3137 0.2588,\
0.9375 0.7961 0.2431 0.2196,\
0.96875 0.7529 0.1569 0.1843,\
1 0.7059 0.0157 0.1490\
)"
#***********LUCA II COLOR SCALE****************
PLUCAII = 'set palette model RGB defined (0.0 "dark-blue", 0.45 "light-blue", 0.5 "white", 0.55 "gold", 1.0 "dark-red")'
#***********LUCA I COLOR SCALE****************
PLUCAI = 'set palette model RGB defined (0.0 "dark-blue", 0.45 "cyan", 0.5 "white", 0.55 "gold", 1.0 "dark-red")'
#***********from : GNUPLOT in action
#***********IMPROVED RAINBOW COLOR SCALE****************
auxiliary_improved_raimbow_f(x) = x < 5./6 ? 2./3 - 4./5*x : 1 - (x-5./6)
PIMP_RAINBOW= "set palette model HSV functions auxiliary_improved_raimbow_f(gray),1,1"
#***********from : GNUPLOT in action
#***********GEOSCALE COLOR SCALE****************
PGEOSCALE = "set palette model RGB defined (0 '#3366ff', 1 '#99ffcc', 2 '#339900', 3 '#66ff33', 4 '#996633', 5 '#ff9900', 6 '#ffff33' )"
#***********from : GNUPLOT in action
#***********BACKTOBACK COLOR SCALE****************
PBACK2BACK = "set palette model RGB defined ( -1 'white', 0 'blue', 0 'red', 1 'white' )"
#***********from : GNUPLOT in action
#***********LUMINANCE COLOR SCALE****************
auxiliary_luminance_green = 1.0/3.0
auxiliary_luminance_blue = 2.0/3.0
PLUMINANCE = "set palette model HSV defined (0 auxiliary_luminance_blue 0.6 0.6, \
1 auxiliary_luminance_blue 0.5 1, \
2 auxiliary_luminance_green 0.5 1, \
3 auxiliary_luminance_green 0.7 0.5 )"
PRCF = "set palette model HSV defined (0 0.5 0.15 0.9, 0.4 auxiliary_luminance_blue 0.2 0.6,\
1 auxiliary_luminance_blue 0.3 0.05)
#***********from : GNUPLOT in action
#***********COLOR BANDS ON GRAY****************
aux_hue(x) = x < 1./8. || x > 7./8. ? 0 : (8*x-1)/6.0
aux_sat(x) = x < 3.0/16.0 || x > 15.0/16.0?0:(1+cos(8*2*pi*x))/2
aux_lum(x) = x < 1.0/16.0?0:(1+cos(8*2*pi*x))/2
aux_stp(x,y) = x<y?0:1
aux_w = 0.99
PCBANDSONGRAY = "set palette model HSV functions aux_hue(gray), aux_stp( aux_sat(gray), aux_w ), gray + (1-gray)*aux_stp(aux_lum(gray), aux_w)"