Changeset 7316


Ignore:
Timestamp:
02/03/11 16:22:59 (14 years ago)
Author:
Eric.Larour
Message:

improved basinzoom

File:
1 edited

Legend:

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

    r7186 r7316  
    66%
    77%   See also: PLOTMODEL, PARSE_OPTIONS
     8               
     9
     10%some defaults
     11if strcmpi(md.hemisphere,'n'), options=addfielddefault(options,'hemisphere','n');
     12elseif strcmpi(md.hemisphere,'s'), options=addfielddefault(options,'hemisphere','s');
     13else error('hemisphere field not present');
     14end
    815
    916%fontsize
     
    8996%Basinzoom
    9097if 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);
    9399end
    94100
    95101%ShowBasins
    96102if 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);
    99104end
    100105
     
    364369        %if we are zooming on a basin, don't take the mesh for the boundaries!
    365370        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);
    368372        else
    369373                mdx=[min(md.x) max(md.x)];
Note: See TracChangeset for help on using the changeset viewer.