Produce antisymmetric grayscale cmap for displaying signed data in conjunction with contours. Has 2N-1 shades, ranging from white to white, passing through black in the middle.
0001 function cmap = bigrayscale(N) 0002 % Produce antisymmetric grayscale cmap for displaying signed data in 0003 % conjunction with contours. Has 2N-1 shades, ranging from white to white, 0004 % passing through black in the middle. 0005 0006 if ~exist('N'), N=64; end 0007 a=gray(N); 0008 b=flipud(a); 0009 cmap = [b(1:(N-1),:); a];