4.8 | 5 ratings Rate this file 119 Downloads (last 30 days) File Size: 2.44 KB File ID: #36212
image thumbnail

matlab blue-white-red colorbar, while zero always corresponds to white color



matlab blue-white-red colorbar, while zero always corresponds to white color. see also darkb2r

| Watch this File

File Information

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(-3,5))
  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(-3,6)) is from light blue to deep red
  e.g. colormap(b2r(-3,3)) is from deep blue to deep red
  I'd advise you to use colorbar first to make sure the caxis' cmax and cmin
  colormap(b2r(-6,8)), colorbar, title('b2r')
  There is also a similar colorbar named darkb2r with colors much darker.


This file inspired Post Glacial Rebound.

MATLAB release MATLAB 7.7 (R2008b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (5)
10 Dec 2014 Daniel  
05 May 2014 Chad Greene

I use this several times each week. Thanks for sharing.

25 Nov 2013 Douglas Anderson  
12 Sep 2013 Philippe  
11 Mar 2013 Eowyn Baughman  

Contact us