Skip to content

Commit

Permalink
Adding crameri colormaps
Browse files Browse the repository at this point in the history
  • Loading branch information
djoshea committed Nov 8, 2023
1 parent 4816b2d commit b5803df
Show file tree
Hide file tree
Showing 2,098 changed files with 286,518 additions and 12 deletions.
Binary file added colormaps/crameri/CrameriColourMaps.mat
Binary file not shown.
Binary file removed colormaps/crameri/CrameriColourMaps7.0.mat
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions colormaps/crameri/ScientificColourMaps8/+TOOLS/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
"""
ScientificColourMaps7
Usage
-----
import ScientificColourMaps5 as SCM5
plt.imshow(data, cmap=SCM5.berlin)
Available colourmaps
---------------------
acton, bam, bamako, bamO, batlow, batlowK, batlowW,
berlin, bilbao, broc, brocO, buda, bukavu, cork, corkO,
davos, devon, fes, grayC, hawaii, imola, lajolla, lapaz,
lisbon, nuuk, oleron, oslo, roma, romaO,tofino, tokyo,
turku, vanimo, vik, vikO
"""
import os
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.colors import LinearSegmentedColormap

folder = os.path.abspath(os.path.dirname(os.path.abspath(__file__)))

__all__ = {'acton', 'bam', 'bamako', 'bamO', 'batlow', 'batlowK', 'batlowW', 'berlin', 'bilbao', 'broc',
'brocO', 'buda', 'bukavu', 'cork', 'corkO',
'davos', 'devon', 'fes', 'grayC', 'hawaii', 'imola', 'lajolla',
'lapaz', 'lisbon', 'nuuk', 'oleron', 'oslo', 'roma', 'romaO', 'tofino',
'tokyo', 'turku', 'vanimo', 'vik', 'vikO'}

for name in __all__:
file = os.path.join(folder, name, name + '.txt')
cm_data = np.loadtxt(file)
vars()[name] = LinearSegmentedColormap.from_list(name, cm_data)
vars()[name + '_r'] = LinearSegmentedColormap.from_list(name + '_r', np.flip(cm_data, axis=0))
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
&@����f�YT�ݣ�A3b�y�~c����d�4!R׎��ӿj�MDrk`�����˝e��g�a[��p�-Iژ����ԃ�;*Z���G<jtb�SLz�d����J@nVP}ٓ�ߨǺh���ލd����PHv�~��g�]X�f^�ֈ���1Myc���������oa��c�D7f�e��t��m�ܝ�*D�f�7%V>.^����e�rb�6#T�g�_Z��n�+FӁ��d�֋�h_�c]��e��r�B5dE9hTN{<,\?1`WR߫��|��w����ۛ��Ѡe�[V���������/K���ؐ����
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
38,13,64,255
240,234,250,255
168,102,144,255
89,84,129,255
221,163,195,255
65,51,98,255
208,121,159,255
126,99,142,255
232,203,226,255
146,100,143,255
52,33,82,255
215,142,177,255
227,183,211,255
191,106,147,255
77,68,114,255
107,96,139,255
236,220,239,255
224,173,203,255
157,101,143,255
180,103,145,255
97,91,135,255
201,112,152,255
45,23,73,255
218,152,186,255
229,193,219,255
212,131,168,255
59,42,90,255
234,212,233,255
71,60,106,255
116,98,141,255
83,76,122,255
136,100,142,255
238,228,245,255
74,64,110,255
86,80,125,255
217,147,181,255
223,168,199,255
186,104,145,255
231,198,222,255
141,100,142,255
237,224,242,255
80,72,118,255
210,126,164,255
174,103,144,255
93,88,132,255
102,94,138,255
214,136,172,255
226,178,207,255
49,28,77,255
121,99,141,255
228,188,215,255
235,216,236,255
233,207,229,255
111,97,140,255
131,99,142,255
68,55,102,255
151,101,143,255
205,116,155,255
197,109,149,255
220,157,190,255
42,18,68,255
162,102,143,255
55,37,86,255
62,46,94,255
239,231,247,255
154,101,143,255
114,98,141,255
54,35,84,255
177,103,144,255
95,90,134,255
199,110,150,255
43,20,70,255
211,129,166,255
143,100,142,255
214,139,175,255
104,95,138,255
99,93,136,255
149,101,143,255
203,114,153,255
66,53,100,255
69,57,104,255
84,78,123,255
60,44,92,255
63,49,96,255
87,82,127,255
223,171,201,255
209,124,161,255
206,119,157,255
237,222,240,255
219,155,188,255
226,181,209,255
160,101,143,255
91,86,131,255
236,218,237,255
230,196,221,255
228,186,213,255
47,25,75,255
235,214,234,255
216,144,179,255
238,226,243,255
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
38 13 64
138 122 156
238 232 248
205 170 199
169 105 146
130 93 137
91 85 129
150 121 160
216 160 192
150 112 151
73 57 103
129 82 125
199 117 155
172 111 152
132 101 143
171 143 178
224 195 219
196 160 192
154 109 150
108 73 118
61 40 88
116 76 120
197 130 167
220 158 190
226 178 207
214 154 187
196 116 155
149 92 135
93 73 119
88 78 123
102 92 135
152 139 173
215 200 223
232 204 227
226 181 209
202 150 184
169 114 154
164 102 144
176 103 145
155 99 142
114 93 137
128 97 140
179 108 148
157 87 129
79 43 90
93 58 104
178 122 160
221 163 195
226 183 211
225 177 206
216 147 181
175 109 149
99 65 110
100 82 124
187 166 194
197 178 204
117 103 142
81 68 114
103 87 131
109 93 137
93 83 128
93 81 126
120 93 136
155 124 161
205 187 212
209 199 221
128 118 155
76 67 112
82 75 120
106 90 134
171 124 161
218 150 184
221 160 193
218 159 192
200 128 165
192 116 155
214 162 193
221 187 213
176 138 173
151 113 152
199 174 202
222 210 230
144 134 169
91 77 122
155 103 145
207 124 162
189 113 153
169 102 143
129 95 137
93 88 132
98 91 135
107 96 140
162 117 156
214 137 173
220 158 191
222 174 204
134 100 139
50 29 78
86 64 110
122 99 141
175 144 178
227 188 215
231 202 225
235 216 236
234 212 233
233 207 229
176 155 187
115 101 143
120 98 141
130 99 142
103 79 124
71 57 104
105 75 120
146 98 140
174 107 148
201 115 154
202 113 152
198 110 150
206 129 166
218 152 186
149 101 141
61 33 81
89 51 97
148 92 134
121 77 121
68 45 93
58 40 89
61 45 93
126 113 149
213 204 225
209 186 211
167 121 159
140 100 142
121 98 141
94 77 122
64 46 94
93 57 103
154 90 133
152 99 141
111 93 136
126 96 139
178 106 147
154 84 127
77 39 87
90 51 97
173 104 144
193 121 160
159 107 148
161 110 151
197 129 167
187 128 166
132 106 147
103 95 138
100 94 137
111 95 138
135 99 141
161 104 145
188 110 150
174 101 142
106 71 116
67 54 101
68 56 103
72 61 108
79 71 117
80 72 117
68 55 102
61 45 93
62 47 95
67 54 101
79 71 116
107 95 138
175 139 175
221 164 195
214 141 176
209 123 160
207 121 159
210 131 167
225 182 208
235 215 234
226 181 209
220 158 190
223 170 200
220 174 203
187 134 170
154 100 142
120 92 136
101 95 138
173 161 191
236 217 236
233 206 228
230 196 221
229 191 217
221 180 207
131 100 139
53 31 80
146 124 158
235 213 233
225 178 206
216 145 180
227 185 211
238 226 243
Loading

0 comments on commit b5803df

Please sign in to comment.