Commit 7e2a09c7 authored by Christian Schneider's avatar Christian Schneider
Browse files

Added UIBK colormap

parent 3c22f004
......@@ -233,7 +233,7 @@ class data_grid(data_module_base):
return data
# Plotting #################################################################
def plot(self, name_x=None, name_y=None, cmap='magma', height=400,
def plot(self, name_x=None, name_y=None, cmap=cmap_uibk, height=400,
width=800, z_min=None, z_max=None, mode='Image'):
"""Plot table with Holoviews
......
......@@ -8,6 +8,9 @@ except NotImplementedError:
pass
import builtins
import re
import matplotlib as mpl
import os
# Colorscheme taken from http://colorbrewer2.org/
#color_scheme = ['#377EB8', '#E41A1C', '#4DAF4A', '#984EA3', '#FF7F00',
......@@ -20,6 +23,14 @@ color_labels = ['b', 'mand', 'y', 'p', 'g', 'lb', 'r', 'k']
cc = dict(zip(color_labels, color_scheme))
builtins.cc = cc # Make this a global variable for easy access
# UIBK Colormap
with open( os.path.dirname(__file__) + '/styles/uibk_colormap_rgb', 'r') as f:
a = f.read().splitlines()
a = [[float(i)/255 for i in k.split(' ')] for k in a]
builtins.cmap_uibk = mpl.colors.ListedColormap(a)
# Default styles
def set(font='Serif', fontsize=11, figsize=(8.6, 8.6),
linewidth=1.5, color_scheme=color_scheme,
color_labels=color_labels):
......
0 51 97
0 51 96
1 51 96
1 52 96
1 52 96
2 52 96
2 52 96
2 52 96
3 52 96
3 53 96
4 53 96
4 53 95
4 53 95
5 53 95
5 53 95
5 54 95
6 54 95
6 54 95
6 54 95
7 54 95
7 54 94
7 55 94
8 55 94
8 55 94
8 55 94
9 55 94
9 55 94
9 56 94
10 56 94
10 56 93
11 56 93
11 56 93
11 56 93
12 57 93
12 57 93
12 57 93
13 57 93
13 57 93
13 57 92
14 58 92
14 58 92
14 58 92
15 58 92
15 58 92
15 58 92
16 59 92
16 59 92
17 59 91
17 59 91
17 59 91
18 59 91
18 60 91
18 60 91
19 60 91
19 60 91
19 60 91
20 61 90
20 61 90
20 61 90
21 61 90
21 61 90
21 61 90
22 62 90
22 62 90
23 62 89
24 62 89
25 63 88
27 63 87
28 63 86
29 64 85
31 64 84
32 64 83
33 65 82
34 65 82
36 65 81
37 66 80
38 66 79
40 66 78
41 67 77
42 67 76
43 68 75
45 68 75
46 68 74
47 69 73
49 69 72
50 69 71
51 70 70
53 70 69
54 70 68
55 71 68
56 71 67
58 71 66
59 72 65
60 72 64
62 72 63
63 73 62
64 73 61
66 74 61
67 74 60
68 74 59
69 75 58
71 75 57
72 75 56
73 76 55
75 76 55
76 76 54
77 77 53
79 77 52
80 77 51
81 78 50
82 78 49
84 78 48
85 79 48
86 79 47
88 79 46
89 80 45
90 80 44
91 81 43
93 81 42
94 81 41
95 82 41
97 82 40
98 82 39
99 83 38
101 83 37
102 83 36
103 84 35
104 84 34
106 85 34
108 85 33
110 86 33
112 87 32
114 88 32
116 89 31
118 90 31
120 90 30
122 91 29
124 92 29
126 93 28
128 94 28
129 94 27
131 95 27
133 96 26
135 97 26
137 98 25
139 98 25
141 99 24
143 100 24
145 101 23
147 102 23
149 102 22
151 103 21
153 104 21
155 105 20
157 106 20
159 107 19
161 107 19
163 108 18
165 109 18
167 110 17
169 111 17
170 111 16
172 112 16
174 113 15
176 114 15
178 115 14
180 115 13
182 116 13
184 117 12
186 118 12
188 119 11
190 120 11
192 120 10
194 121 10
196 122 9
198 123 9
200 124 8
202 124 8
204 125 7
206 126 7
208 127 6
209 128 5
211 128 5
213 129 4
215 130 4
217 131 3
219 132 3
221 133 2
223 133 2
225 134 1
227 135 1
229 136 0
230 137 3
230 139 7
231 141 11
231 143 15
231 145 19
232 147 23
232 149 27
233 151 31
233 152 35
234 154 39
234 156 43
234 158 47
235 160 51
235 162 55
236 164 59
236 166 63
236 167 67
237 169 71
237 171 75
238 173 79
238 175 83
238 177 87
239 179 91
239 181 95
240 182 99
240 184 103
241 186 107
241 188 111
241 190 115
242 192 119
242 194 123
243 196 127
243 198 131
243 199 135
244 201 139
244 203 143
245 205 147
245 207 151
245 209 155
246 211 159
246 213 163
247 214 168
247 216 172
248 218 176
248 220 180
248 222 184
249 224 188
249 226 192
250 228 196
250 229 200
250 231 204
251 233 208
251 235 212
252 237 216
252 239 220
252 241 224
253 243 228
253 244 232
254 246 236
254 248 240
255 250 244
255 252 248
255 254 252
255 255 255
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment