You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Eindhoven University of Technology](#eindhoven-university-of-technology)
57
65
@@ -122,7 +130,7 @@ int main()
122
130
}
123
131
```
124
132
125
-
Note that the colorcycles are not interpolatable. Consequently the functions do have a size option. Note also that the colormaps can also be called directly, e.g.
133
+
Note that the colorcycles are not interpolatable. Consequently the functions do have a size option. Note also that the colormaps and colorcycles can also be called directly, e.g.
126
134
127
135
```cpp
128
136
#include<cppcolormap.h>
@@ -237,11 +245,11 @@ N = 256
237
245
238
246
# specify the colormap as string
239
247
cols = cm.colormap("Reds", N)
240
-
cols = cm.colorcycle("tue", N)
248
+
cols = cm.colorcycle("tue")
241
249
242
250
# or call the functions directly
243
251
cols = cm.Reds(N)
244
-
cols = cm.tue(N)
252
+
cols = cm.tue()
245
253
```
246
254
247
255
(see lists of [colormaps](#available-colormaps) and [color-cycles](#available-color-cycles) below).
@@ -269,7 +277,7 @@ x, y = np.meshgrid(
269
277
np.linspace(0, 1, 100),
270
278
np.linspace(0, 1, 100))
271
279
272
-
d = np.sqrt(x**2+ y**2)
280
+
d = np.sqrt(x**2.0+ y**2.0)
273
281
274
282
C = cm.Reds(256)
275
283
C = np.c_[C, np.ones(C.shape[0])]
@@ -328,7 +336,7 @@ plt.show()
328
336
>
329
337
> [colorbrewer2.org](http://colorbrewer2.org)
330
338
331
-
## Matplotlib
339
+
## matplotlib
332
340
333
341
| Name | Inverse colormap |
334
342
|----------|------------------|
@@ -345,35 +353,107 @@ plt.show()
345
353
>
346
354
> [GitHub](https://github.com/BIDS/colormap)
347
355
348
-
## Monochromatic colormaps
349
-
350
-
| Name | Inverse colormap |
351
-
|----------|------------------|
352
-
| White | - |
353
-
| Grey | - |
354
-
| Black | - |
355
-
| Red | - |
356
-
| Blue | - |
357
-
358
-
# Available color-cycles
356
+
## monocolor
357
+
358
+
| Name | Inverse colormap | Source |
359
+
|----------------|------------------|--------|
360
+
| White | - | - |
361
+
| Grey | - | - |
362
+
| Black | - | - |
363
+
| Red | - | - |
364
+
| Blue | - | - |
365
+
| tuedarkblue | - | 1 |
366
+
| tueblue | - | 1 |
367
+
| tuelightblue | - | 1 |
368
+
| tuewarmred | - | 1 |
369
+
| Apricot | - | 2 |
370
+
| Aquamarine | - | 2 |
371
+
| Bittersweet | - | 2 |
372
+
| Black | - | 2 |
373
+
| Blue | - | 2 |
374
+
| BlueGreen | - | 2 |
375
+
| BlueViolet | - | 2 |
376
+
| BrickRed | - | 2 |
377
+
| Brown | - | 2 |
378
+
| BurntOrange | - | 2 |
379
+
| CadetBlue | - | 2 |
380
+
| CarnationPink | - | 2 |
381
+
| Cerulean | - | 2 |
382
+
| CornflowerBlue | - | 2 |
383
+
| Cyan | - | 2 |
384
+
| Dandelion | - | 2 |
385
+
| DarkOrchid | - | 2 |
386
+
| Emerald | - | 2 |
387
+
| ForestGreen | - | 2 |
388
+
| Fuchsia | - | 2 |
389
+
| Goldenrod | - | 2 |
390
+
| Gray | - | 2 |
391
+
| Green | - | 2 |
392
+
| GreenYellow | - | 2 |
393
+
| JungleGreen | - | 2 |
394
+
| Lavender | - | 2 |
395
+
| LimeGreen | - | 2 |
396
+
| Magenta | - | 2 |
397
+
| Mahogany | - | 2 |
398
+
| Maroon | - | 2 |
399
+
| Melon | - | 2 |
400
+
| MidnightBlue | - | 2 |
401
+
| Mulberry | - | 2 |
402
+
| NavyBlue | - | 2 |
403
+
| OliveGreen | - | 2 |
404
+
| Orange | - | 2 |
405
+
| OrangeRed | - | 2 |
406
+
| Orchid | - | 2 |
407
+
| Peach | - | 2 |
408
+
| Periwinkle | - | 2 |
409
+
| PineGreen | - | 2 |
410
+
| Plum | - | 2 |
411
+
| ProcessBlue | - | 2 |
412
+
| Purple | - | 2 |
413
+
| RawSienna | - | 2 |
414
+
| Red | - | 2 |
415
+
| RedOrange | - | 2 |
416
+
| RedViolet | - | 2 |
417
+
| Rhodamine | - | 2 |
418
+
| RoyalBlue | - | 2 |
419
+
| RoyalPurple | - | 2 |
420
+
| RubineRed | - | 2 |
421
+
| Salmon | - | 2 |
422
+
| SeaGreen | - | 2 |
423
+
| Sepia | - | 2 |
424
+
| SkyBlue | - | 2 |
425
+
| SpringGreen | - | 2 |
426
+
| Tan | - | 2 |
427
+
| TealBlue | - | 2 |
428
+
| Thistle | - | 2 |
429
+
| Turquoise | - | 2 |
430
+
| Violet | - | 2 |
431
+
| VioletRed | - | 2 |
432
+
| White | - | 2 |
433
+
| WildStrawberry | - | 2 |
434
+
| Yellow | - | 2 |
435
+
| YellowGreen | - | 2 |
436
+
| YellowOrange | - | 2 |
437
+
438
+
1.[Eindhoven University of Technology](http://www.tue.nl)
0 commit comments