首页 > 技术文章 > matlab color_rain colorbar

gisalameda 2016-02-25 09:33 原文

来自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


推荐阅读