matlab color_rain colorbar

来自http://www.aos.wisc.edu/~dvimont/matlab/Graphics_Tools/color_rain.html

Listing of script color_rain

cmap = [ ...
    1.0000    1.0000    1.0000
    0.6667    1.0000    0.6667
    0.3333    1.0000    0.3333
         0    0.9192         0
    1.0000    1.0000         0
    1.0000    0.5000         0
    0.8000         0         0
];
colormap(cmap);

mycmap =

    1.0000    1.0000    1.0000
    0.9333    0.9333    0.9333
    0.8000    0.8000    1.0000
    0.7020    0.7804    1.0000
    1.0000    1.0000         0
    1.0000    0.5000         0
    1.0000         0         0


原文地址:https://www.cnblogs.com/gisalameda/p/5215851.html