%color.m

close all;fclose all;clear all;

figure


colormap(cmap(1,100));         % make color map for -80 to -55 dB when
colmap=colormap;              % datrange = 1e-4 to 1e-8
%colmap=[colmap;ones(10,3)];   % add white for range -55 to -50dB
m=32;
g=[12:m-1]'/max(m-1,1);
g=1-g;
g=[g g g];
colmap=[colmap;g];            % add gray-scale for range -55 to -45dB
colmap=[colmap;zeros(20,3)];  % add black for range -45 to -40dB
colormap(colmap);
save colmap colmap -ascii
% datrange= max and min values for 10log(sv) data (Albatross IV data series)
datrange =[10*log10(1e-4) 10*log10(1e-10)]; %this sets range of color bar.
clegend5(datrange,'SV',.87);                %see below same values applied

print -djpeg colorbar.jpg