Changeset 2674


Ignore:
Timestamp:
11/19/09 14:53:36 (15 years ago)
Author:
Mathieu Morlighem
Message:

moved axis before xlim and ylim that would not be taken into account otherwise

File:
1 edited

Legend:

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

    r2649 r2674  
    4545else
    4646        view(getfieldvalue(options,'view',2));
     47end
     48
     49%axis
     50if exist(options,'axis')
     51        eval(['axis ' getfieldvalue(options,'axis')]);
     52else
     53        if (strcmpi(md.type,'2d') | exist(options,'layer')),
     54                axis tight equal;
     55        else
     56                axis auto tight
     57        end
    4758end
    4859
     
    188199end
    189200
    190 %axis
    191 if exist(options,'axis')
    192         eval(['axis ' getfieldvalue(options,'axis')]);
    193 else
    194         if (strcmpi(md.type,'2d') | exist(options,'layer')),
    195                 axis tight equal;
    196         else
    197                 axis auto tight
    198         end
    199 end
    200 
    201201%streamliness
    202202if exist(options,'streamlines'),
Note: See TracChangeset for help on using the changeset viewer.