Changeset 3174
- Timestamp:
- 03/03/10 16:44:35 (15 years ago)
- Location:
- issm/trunk/src/m/classes/public/plot
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/plot/applyoptions.m
r3152 r3174 264 264 axes('pos',PosInset); 265 265 axis equal off 266 box off266 %box off 267 267 if strcmpi(md.hemisphere,'n') | strcmpi(md.hemisphere,'north'), 268 268 A=expread([ ISSM_DIR '/../models/Greenland/Exp_Par/DomainOutline.exp']); 269 269 elseif strcmpi(md.hemisphere,'s') | strcmpi(md.hemisphere,'south'), 270 270 A=expread([ ISSM_DIR '/../models/Antarctica/Exp_Par/DomainOutline.exp']); 271 else 272 error('applyoptions error message: hemisphere not defined'); 271 273 end 272 274 Ax=[min(A.x) max(A.x)]; … … 274 276 mdx=[min(md.x) max(md.x)]; 275 277 mdy=[min(md.y) max(md.y)]; 276 patch([Ax(1) Ax(2) Ax(2) Ax(1)],[Ay(1) Ay(1) Ay(2) Ay(2)],[1 1 1],'edgecolor','none')277 278 line(A.x,A.y,'color','b'); 279 patch([Ax(1) Ax(2) Ax(2) Ax(1) Ax(1)],[Ay(1) Ay(1) Ay(2) Ay(2) Ay(1)],[1 1 1],'EdgeColor',[0 0 0],'LineWidth',1,'FaceLighting','none') 278 280 patch( [mdx(1) mdx(2) mdx(2) mdx(1)],[mdy(1) mdy(1) mdy(2) mdy(2)],ones(4,1),'EdgeColor',[0 0 0],'FaceColor',[0.5 0.5 0.5],'FaceAlpha',0.5) 279 281 colorbar('off'); -
issm/trunk/src/m/classes/public/plot/plot_overlay.m
r3061 r3174 20 20 21 21 %get xlim and ylim 22 xlim=getfieldvalue(options,'xlim',[min( md.x) max(md.x)]);23 ylim=getfieldvalue(options,'ylim',[min( md.y) max(md.y)]);22 xlim=getfieldvalue(options,'xlim',[min(x) max(x)])/getfieldvalue(options,'unit',1); 23 ylim=getfieldvalue(options,'ylim',[min(y) max(y)])/getfieldvalue(options,'unit',1); 24 24 25 25 %radar power … … 31 31 t2=clock;fprintf('%s\n',[' done (' num2str(etime(t2,t1)) ' seconds)']); 32 32 end 33 34 35 xlim=getfieldvalue(options,'xlim',[min(x) max(x)]); 36 ylim=getfieldvalue(options,'ylim',[min(y) max(y)]); 33 37 34 38 %mesh2grid … … 101 105 102 106 %Plot: 103 imagesc(md.sarxm ,md.sarym,image_rgb);set(gca,'YDir','normal');107 imagesc(md.sarxm*getfieldvalue(options,'unit',1),md.sarym*getfieldvalue(options,'unit',1),image_rgb);set(gca,'YDir','normal'); 104 108 105 109 %last step: mesh overlay?
Note:
See TracChangeset
for help on using the changeset viewer.