Skip to content

Commit 8c8e1b5

Browse files
authored
Merge pull request #6254 from bastibe/colormap-twilight
adds two new cyclic color schemes
2 parents 22bc89c + c66476e commit 8c8e1b5

File tree

5 files changed

+576
-13
lines changed

5 files changed

+576
-13
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Cyclic colormaps
2+
----------------
3+
4+
Two new colormaps named 'twilight' and 'twilight_shifted' were added.
5+
These colormaps start and end on the same color, and have two
6+
symmetric halves with equal lightness, but diverging color. Since they
7+
wrap around, they are a good choice for cyclic data such as phase
8+
angles, compass directions, or time of day. Like viridis, twilight is
9+
perceptually uniform and colorblind friendly.

examples/color/colormap_reference.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,14 @@
2929
('Diverging', [
3030
'PiYG', 'PRGn', 'BrBG', 'PuOr', 'RdGy', 'RdBu',
3131
'RdYlBu', 'RdYlGn', 'Spectral', 'coolwarm', 'bwr', 'seismic']),
32+
('Cyclic', ['twilight', 'twilight_shifted', 'hsv']),
3233
('Qualitative', [
3334
'Pastel1', 'Pastel2', 'Paired', 'Accent',
3435
'Dark2', 'Set1', 'Set2', 'Set3',
3536
'tab10', 'tab20', 'tab20b', 'tab20c']),
3637
('Miscellaneous', [
3738
'flag', 'prism', 'ocean', 'gist_earth', 'terrain', 'gist_stern',
38-
'gnuplot', 'gnuplot2', 'CMRmap', 'cubehelix', 'brg', 'hsv',
39+
'gnuplot', 'gnuplot2', 'CMRmap', 'cubehelix', 'brg',
3940
'gist_rainbow', 'rainbow', 'jet', 'nipy_spectral', 'gist_ncar'])]
4041

4142

0 commit comments

Comments
 (0)