source: issm/oecreview/Archive/24684-25833/ISSM-25622-25623.diff

Last change on this file was 25834, checked in by Mathieu Morlighem, 4 years ago

CHG: added 24684-25833

File size: 786 bytes
  • ../trunk-jpl/src/m/plot/applyoptions.m

     
    4141if exist(options,'ztick'), set(gca,'ZTick',getfieldvalue(options,'ztick')); end
    4242
    4343%view
    44 if dimension(md.mesh)==3 & ~exist(options,'layer'),
     44if dimension(md.mesh)==3 && ~(exist(options,'layer') || exist(options,'depthaverage'))
    4545        view(getfieldvalue(options,'view',3));
    4646else
    4747        view(getfieldvalue(options,'view',2));
     
    5959        end
    6060else
    6161        if strcmp(domaintype(md.mesh),'3D'),
    62                 if ~exist(options,'layer'),
     62                if ~(exist(options,'layer') || exist(options,'depthaverage'))
    6363                        axis auto tight
    6464                else
    6565                        axis tight equal
Note: See TracBrowser for help on using the repository browser.