Created
September 22, 2014 23:57
-
-
Save gramian/67585e5f2e9a294c3aa6 to your computer and use it in GitHub Desktop.
Antijet Colormap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function m = antijet(n) | |
% antijet colormap | |
% by Christian Himpe 2014 | |
% released under BSD 2-Clause License ( opensource.org/licenses/BSD-2-Clause ) | |
if(nargin<1 || isempty(n)), n = 256; end; | |
L = linspace(0,1,n); | |
R = -0.5*sin( L*(1.37*pi)+0.13*pi )+0.5; | |
G = -0.4*cos( L*(1.5*pi) )+0.4; | |
B = 0.3*sin( L*(2.11*pi) )+0.3; | |
m = [R;G;B]'; | |
end | |
Author
gramian
commented
Oct 15, 2014
- Almost linear grayscale conversion
- Visual-spectrum-like color sequence
- See The 'jet' colormap must die!
How did you generate that ^ plot?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment