Changeset 21734


Ignore:
Timestamp:
05/21/17 16:47:38 (8 years ago)
Author:
Eric.Larour
Message:

CHG: explicitely control color range.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/branches/trunk-larour-NatClimateChange2016/src/m/plot/colormaps/bluewhitered.m

    r18611 r21734  
    1 function newmap = bluewhitered(m)
     1function newmap = bluewhitered(m,CAXIS)
    22%BLUEWHITERED   Blue, white, and red color map.
    33%   BLUEWHITERED(M) returns an M-by-3 matrix containing a blue to white
     
    3434end
    3535
    36 
    3736bottom = [0 0 0.5];
    3837botmiddle = [0 0.5 1];
     
    4241
    4342% Find middle
    44 lims = get(gca, 'CLim');
     43if nargin < 2
     44        lims = get(gca, 'CLim');
     45else
     46        lims = CAXIS;
     47end
    4548
    4649% Find ratio of negative to positive
Note: See TracChangeset for help on using the changeset viewer.