Changeset 15057


Ignore:
Timestamp:
05/21/13 10:48:18 (12 years ago)
Author:
cborstad
Message:

BUG: fixed bug for single inset

File:
1 edited

Legend:

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

    r15056 r15057  
    452452                PosInseti=[cplotpos(1)+insetposi(1)*cplotpos(3),cplotpos(2)+insetposi(2)*cplotpos(4), insetposi(3)*cplotpos(3), insetposi(4)*cplotpos(4)];
    453453                %show pos
    454                 if length(X1==2),
     454                if iscell(X1),
     455                        X1i=X1{i};
     456                else
    455457                        X1i=X1;
     458                end
     459                if iscell(Y1),
     460                        Y1i=Y1{i};
    456461                else
    457                         X1i=X1{i};
    458                 end
    459                 if length(Y1==2),
    460462                        Y1i=Y1;
    461                 else
    462                         Y1i=Y1{i};
    463463                end
    464464                if strcmpi(getfieldvalue(options,'showinset','off'),'on')
Note: See TracChangeset for help on using the changeset viewer.