Changeset 14411


Ignore:
Timestamp:
02/27/13 13:58:50 (12 years ago)
Author:
Mathieu Morlighem
Message:

NEW: added forcecolormap options in plot_gridded to fix the colormap once for all

File:
1 edited

Legend:

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

    r14195 r14411  
    5353
    5454%shading interp;
    55 h=imagesc(xlim,ylim,data_grid);set(gca,'YDir','normal');
     55if exist(options,'forcecolormap'),
     56        image_rgb = ind2rgb(uint16((data_grid - data_min)*(length(map)/(data_max-data_min))),map);
     57        h=imagesc(xlim,ylim,image_rgb);
     58else
     59        h=imagesc(xlim,ylim,data_grid);
     60end
     61axis xy
    5662
    5763%last step: mesh gridded?
Note: See TracChangeset for help on using the changeset viewer.