Changeset 28024


Ignore:
Timestamp:
11/30/23 13:55:47 (16 months ago)
Author:
Cheng Gong
Message:

BUG: fix NaN index when using overlay

File:
1 edited

Legend:

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

    r27606 r28024  
    149149                ind = ceil((len-1)*(data_grid-data_min)/(data_max - data_min + eps) +1);
    150150                ind(find(ind>len))=len;
     151                ind(isnan(ind))=len;
    151152                image_rgb=zeros(size(data_grid,1),size(data_grid,2),3);
    152153                r=colorm(:,1); image_rgb(:,:,1)=r(ind); clear r;
Note: See TracChangeset for help on using the changeset viewer.