Changeset 7316
- Timestamp:
- 02/03/11 16:22:59 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/model/plot/applyoptions.m
r7186 r7316 6 6 % 7 7 % See also: PLOTMODEL, PARSE_OPTIONS 8 9 10 %some defaults 11 if strcmpi(md.hemisphere,'n'), options=addfielddefault(options,'hemisphere','n'); 12 elseif strcmpi(md.hemisphere,'s'), options=addfielddefault(options,'hemisphere','s'); 13 else error('hemisphere field not present'); 14 end 8 15 9 16 %fontsize … … 89 96 %Basinzoom 90 97 if exist(options,'basin'); 91 if strcmpi(md.hemisphere,'n'), hemisphere=+1; else hemisphere=-1; end 92 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)); 98 basinzoom(options); 93 99 end 94 100 95 101 %ShowBasins 96 102 if strcmpi(getfieldvalue(options,'showbasins','off'),'on') 97 if strcmpi(md.hemisphere,'n'), hemisphere=+1; else hemisphere=-1; end 98 showbasins('hemisphere',getfieldvalue(options,'hemisphere',hemisphere),'fontsize',fontsize); 103 showbasins(options); 99 104 end 100 105 … … 364 369 %if we are zooming on a basin, don't take the mesh for the boundaries! 365 370 if exist(options,'basin'), 366 if strcmpi(md.hemisphere,'n'), hemisphere=+1; else hemisphere=-1; end 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)); 371 [mdx mdy]=basinzoom(options); 368 372 else 369 373 mdx=[min(md.x) max(md.x)];
Note:
See TracChangeset
for help on using the changeset viewer.