Changeset 17708


Ignore:
Timestamp:
04/10/14 13:38:52 (11 years ago)
Author:
hongjuy
Message:

CHG: using domaintype to choose axis options in plotmodel

File:
1 edited

Legend:

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

    r17687 r17708  
    6060        eval(['axis ' getfieldvalue(options,'axis')]);
    6161else
    62         if dimension(md.mesh)==2 | exist(options,'layer'),
     62        if strcmp(domaintype(md.mesh),'3D'),
     63                if ~exist(options,'layer'),
     64                        axis auto tight
     65                else
     66                        axis tight equal
     67                end
     68        elseif strcmp(domaintype(md.mesh),'2Dvertical'),
     69                axis auto tight
     70        elseif strcmp(domaintype(md.mesh),'2Dhorizontal'),
    6371                axis tight equal;
    6472        else
    65                 axis auto tight
     73                error('type of domain not supported');
    6674        end
    6775end
Note: See TracChangeset for help on using the changeset viewer.