Skip to content

Instantly share code, notes, and snippets.

@gramian
Created September 22, 2014 23:57
Show Gist options
  • Save gramian/67585e5f2e9a294c3aa6 to your computer and use it in GitHub Desktop.
Save gramian/67585e5f2e9a294c3aa6 to your computer and use it in GitHub Desktop.
Antijet Colormap
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
@E3V3A
Copy link

E3V3A commented Mar 25, 2019

How did you generate that ^ plot?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment