Changeset 21250
- Timestamp:
- 10/07/16 15:17:28 (8 years ago)
- Location:
- issm/trunk-jpl/src/m/plot/colormaps
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/plot/colormaps/bluewhitered.m
r18611 r21250 1 function newmap = bluewhitered(m )1 function newmap = bluewhitered(m,CAXIS) 2 2 %BLUEWHITERED Blue, white, and red color map. 3 3 % BLUEWHITERED(M) returns an M-by-3 matrix containing a blue to white … … 34 34 end 35 35 36 37 36 bottom = [0 0 0.5]; 38 37 botmiddle = [0 0.5 1]; … … 42 41 43 42 % Find middle 44 lims = get(gca, 'CLim'); 43 if nargin < 2 44 lims = get(gca, 'CLim'); 45 else 46 lims = CAXIS; 47 end 45 48 46 49 % Find ratio of negative to positive -
issm/trunk-jpl/src/m/plot/colormaps/bluewhitered_smooth.m
r19349 r21250 1 function newmap = bluewhitered_smooth(m )1 function newmap = bluewhitered_smooth(m,CAXIS) 2 2 %BLUEWHITERED Blue, white, and red color map. 3 3 % BLUEWHITERED(M) returns an M-by-3 matrix containing a blue to white … … 46 46 47 47 % Find middle 48 lims = get(gca, 'CLim'); 48 if nargin < 2 49 lims = get(gca, 'CLim'); 50 else 51 lims = CAXIS; 52 end 49 53 50 54 % Find ratio of negative to positive
Note:
See TracChangeset
for help on using the changeset viewer.