Changeset 2700


Ignore:
Timestamp:
12/02/09 15:36:16 (15 years ago)
Author:
Mathieu Morlighem
Message:

fixed problem with logicals

Location:
issm/trunk/src/m/classes/public/plot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/public/plot/plot_overlay.m

    r2692 r2700  
    102102imagesc(md.sarxm,md.sarym,image_rgb);set(gca,'YDir','normal');
    103103
     104%last step: mesh overlay?
     105if exist(options,'edgecolor')
     106        A=elements(:,1); B=elements(:,2); C=elements(:,3);
     107        patch( 'Faces', [A B C], 'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','none','EdgeColor',getfieldvalue(options,'edgecolor'));
     108end
     109
    104110%Apply options, without colorbar and without grid
    105111iscolorbar=getfieldvalue(options,'colorbar',1);
  • issm/trunk/src/m/classes/public/plot/processdata.m

    r2477 r2700  
    1717end
    1818datasize=size(data);
     19
     20%convert to double if necessary
     21if ~isnumeric(data);
     22        disp('processdata info message: data is not numeric (logical?). Converted to double');
     23        data=double(data);
     24end
    1925
    2026%check length
Note: See TracChangeset for help on using the changeset viewer.