Changeset 8001 for issm/trunk/src/m/model/plot/plot_gridded.m
- Timestamp:
- 04/21/11 07:34:15 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/model/plot/plot_gridded.m
r7942 r8001 9 9 %process mesh and data 10 10 [x y z elements is2d]=processmesh(md,[],options); 11 [data datatype]=processdata(md,data,options); 11 12 12 13 %check is2d … … 18 19 xlim=getfieldvalue(options,'xlim',[min(x) max(x)]); 19 20 ylim=getfieldvalue(options,'ylim',[min(y) max(y)]); 20 post=getfieldvalue(options,'posting', 500);21 post=getfieldvalue(options,'posting',diff(xlim)/1000); 21 22 22 23 %Interpolating data on grid … … 34 35 data_max=max(data_grid(:)); 35 36 end 36 white =data_min - (data_max-data_min)/ 60;37 white =data_min - (data_max-data_min)/55; 37 38 options=changefieldvalue(options,'caxis',[white data_max]); 38 39 data_grid(isnan(data_grid))=white; … … 47 48 %set(gca,'pos',P); 48 49 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');50 50 %shading interp; 51 51 h=imagesc(xlim,ylim,data_grid);set(gca,'YDir','normal');
Note:
See TracChangeset
for help on using the changeset viewer.