Ignore:
Timestamp:
04/21/11 07:34:15 (14 years ago)
Author:
Mathieu Morlighem
Message:

Moved inset to applyoptions (more general)
Added 'offsetaxispos' option to get more space
Posting for gridded plot has a default value
Clipped text so that it does not appear if outside of the box

File:
1 edited

Legend:

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

    r7942 r8001  
    99%process mesh and data
    1010[x y z elements is2d]=processmesh(md,[],options);
     11[data datatype]=processdata(md,data,options);
    1112
    1213%check is2d
     
    1819xlim=getfieldvalue(options,'xlim',[min(x) max(x)]);
    1920ylim=getfieldvalue(options,'ylim',[min(y) max(y)]);
    20 post=getfieldvalue(options,'posting',500);
     21post=getfieldvalue(options,'posting',diff(xlim)/1000);
    2122
    2223%Interpolating data on grid
     
    3435        data_max=max(data_grid(:));
    3536end
    36 white  =data_min - (data_max-data_min)/60;
     37white  =data_min - (data_max-data_min)/55;
    3738options=changefieldvalue(options,'caxis',[white data_max]);
    3839data_grid(isnan(data_grid))=white;
     
    4748%set(gca,'pos',P);
    4849
    49 %pcolor(xlim(1)+post/2:post:xlim(2)-post/2,ylim(1)+post/2:post:ylim(2)-post/2,data_grid);set(gca,'YDir','normal');
    5050%shading interp;
    5151h=imagesc(xlim,ylim,data_grid);set(gca,'YDir','normal');
Note: See TracChangeset for help on using the changeset viewer.