資源簡(jiǎn)介
matlab畫異常圖時(shí)用的藍(lán)白紅色colorbar0值總是對(duì)應(yīng)白色-b2r.m
b2r.png darkb2r.png
matlab畫anomaly圖時(shí)經(jīng)常需要的藍(lán)白紅色colorbar, 0值總是對(duì)應(yīng)白色,用法參考help b2r或者h(yuǎn)elp darkb2r
b2r.png darkb2r.png
matlab畫anomaly圖時(shí)經(jīng)常需要的藍(lán)白紅色colorbar, 0值總是對(duì)應(yīng)白色,用法參考help b2r或者h(yuǎn)elp darkb2r
代碼片段和文件信息
function?newmap?=?b2r(cmin_inputcmax_input)
%BLUEWHITERED???Blue?white?and?red?color?map.
%???this?matlab?file?is?designed?to?draw?anomaly?figures?the?color?of
%???the?colorbar?is?from?blue?to?white?and?then?to?red?corresponding?to?
%???the?anomaly?values?from?negative?to?zero?to?positive?respectively.?
%???The?color?white?always?correspondes?to?value?zero.?
%???
%???You?should?input?two?values?like?caxis?in?matlab?that?is?the?min?and
%???the?max?value?of?color?values?designed.??e.g.?colormap(b2r(-35))
%???
%???the?brightness?of?blue?and?red?will?change?according?to?your?setting
%???so?that?the?brightness?of?the?color?corresponded?to?the?color?of?his
%???opposite?number
%???e.g.?colormap(b2r(-36))???is?from?light?blue?to?deep?red
%???e.g.?colormap(b2r(-33))???is?fr
評(píng)論
共有 條評(píng)論