Changeset 7186
- Timestamp:
- 01/26/11 14:22:53 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/model/plot/applyoptions.m
r7142 r7186 366 366 if strcmpi(md.hemisphere,'n'), hemisphere=+1; else hemisphere=-1; end 367 367 [mdx mdy]=basinzoom('basin',getfieldvalue(options,'basin'),'hemisphere',getfieldvalue(options,'hemisphere',hemisphere),'basindeltax',getfieldvalue(options,'basindeltax',300000),'basindeltay',getfieldvalue(options,'basindeltay',300000),'unit',getfieldvalue(options,'unit',1)); 368 else369 mdx=[min(md.x) max(md.x)];370 mdy=[min(md.y) max(md.y)];371 end372 line(A.x,A.y,'color','b');373 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')374 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','r','FaceAlpha',0.5)375 colorbar('off');368 else 369 mdx=[min(md.x) max(md.x)]; 370 mdy=[min(md.y) max(md.y)]; 371 end 372 line(A.x,A.y,ones(size(A.x)),'color','b'); 373 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') 374 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','r','FaceAlpha',0.5) 375 colorbar('off'); 376 376 end 377 377
Note:
See TracChangeset
for help on using the changeset viewer.