Changeset 27134


Ignore:
Timestamp:
07/01/22 17:30:47 (3 years ago)
Author:
Eric.Larour
Message:

CHG: added cloud option in 3d

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/branches/trunk-larour-SLPS2022/src/m/plot/applyoptions.m

    r26314 r27134  
    542542        x=field(:,1);
    543543        y=field(:,2);
     544        if isa(md.mesh,'mesh3dsurface'), z=field(:,3); end
     545
    544546        %unit multiplier:
    545547        if exist(options,'unit'),
     
    547549                x=x*unit;
    548550                y=y*unit;
    549         end
    550         hold on,p=plot(x,y,'k.');
     551                if isa(md.mesh,'mesh3dsurface'), z=z*unit; end
     552        end
     553        hold on;
     554        if isa(md.mesh,'mesh3dsurface'),
     555                p=plot3(x,y,z,'k.');
     556        else
     557                p=plot(x,y,'k.');
     558        end
    551559        markersize=getfieldvalue(options,'markersize',12);
    552560        color=getfieldvalue(options,'cloudcolor','k');
Note: See TracChangeset for help on using the changeset viewer.