Changeset 14385


Ignore:
Timestamp:
02/25/13 18:42:16 (12 years ago)
Author:
cborstad
Message:

NEW: damage colormap and color_scale function for creating maps with monotonic luminance, much better for perception

Location:
issm/trunk-jpl/src/m/plot/colormaps
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/plot/colormaps/getcolormap.m

    r14028 r14385  
    2323        map = jet(256);
    2424        map = map(128:end,:);
     25elseif strcmpi(map,'damage'),
     26        v=ver;
     27        if any(strcmp('Image Processing Toolbox',{v.Name})),
     28                map = color_scale(256,0,70,'ccw');
     29                map = flipud(map);
     30                map(1:2,:)=[0.7476    1.0000    1.0000; 0.7476    1.0000    1.0000];
     31        else
     32                error('damage colormap requires Image Processing Toolbox, please try another colormap');
     33        end
    2534elseif strcmpi(map,'redblue'),
    2635        map = hsv(256);
Note: See TracChangeset for help on using the changeset viewer.