Skip to content

Commit 051ab63

Browse files
committed
Add "clipped" variant of "RdBu" colormap
1 parent d5006b9 commit 051ab63

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sfs/plot2d.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ def _register_cmap_clip(name, original_name):
4545
_register_cmap_clip('viridis_clip', 'viridis')
4646
_register_cmap_clip('viridis_r_clip', 'viridis_r')
4747

48+
_register_cmap_clip('RdBu_clip', 'RdBu')
49+
_register_cmap_clip('RdBu_r_clip', 'RdBu_r')
50+
4851
# The 'coolwarm' colormap is based on the paper
4952
# "Diverging Color Maps for Scientific Visualization" by Kenneth Moreland
5053
# https://www.kennethmoreland.com/color-maps/ColorMapsExpanded.pdf

0 commit comments

Comments
 (0)