Changeset 8107


Ignore:
Timestamp:
05/02/11 17:51:03 (14 years ago)
Author:
Eric.Larour
Message:

can now plot a cloud of points, such as in plot(x,y)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/model/plot/applyoptions.m

    r8001 r8107  
    451451end
    452452
     453%cloud of points:
     454if exist(options,'cloud'),
     455        field=getfieldvalue(options,'cloud');
     456        x=field(:,1);
     457        y=field(:,2);
     458        %unit multiplier:
     459        if exist(options,'unit'),
     460                unit=getfieldvalue(options,'unit');
     461                x=x*unit;
     462                y=y*unit;
     463        end
     464        hold on,p=plot(x,y,'k.');
     465        markersize=getfieldvalue(options,'markersize',5);
     466        set(p,'MarkerSize',markersize);
     467end
     468
    453469%========================%
    454470%OK VERY LAST STEP: INSET|
Note: See TracChangeset for help on using the changeset viewer.