Changeset 21735


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

CHG: explicit control of caxis.

File:
1 edited

Legend:

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

    r19349 r21735  
    1 function newmap = bluewhitered_smooth(m)
     1function newmap = bluewhitered_smooth(m,CAXIS)
    22%BLUEWHITERED   Blue, white, and red color map.
    33%   BLUEWHITERED(M) returns an M-by-3 matrix containing a blue to white
     
    4646
    4747% Find middle
    48 lims = get(gca, 'CLim');
     48if nargin < 2
     49        lims = get(gca, 'CLim');
     50else
     51        lims = CAXIS;
     52end
    4953
    5054% Find ratio of negative to positive
Note: See TracChangeset for help on using the changeset viewer.