Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8c8e1b5

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

File tree

Expand file treeCollapse file tree

5 files changed

+576
-13
lines changed
Filter options
Expand file treeCollapse file tree

5 files changed

+576
-13
lines changed
+9Lines 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

Copy file name to clipboardExpand all lines: examples/color/colormap_reference.py
+2-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.