資源簡介
matlab畫異常圖時用的藍白紅色colorbar0值總是對應白色-b2r.m
b2r.png darkb2r.png
matlab畫anomaly圖時經常需要的藍白紅色colorbar, 0值總是對應白色,用法參考help b2r或者help darkb2r
b2r.png darkb2r.png
matlab畫anomaly圖時經常需要的藍白紅色colorbar, 0值總是對應白色,用法參考help b2r或者help 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
評論
共有 條評論