summaryrefslogtreecommitdiff
path: root/texmf-dist/scripts/ketcindy/ketlib/ketpic2escifiles6/Setscaling.sci
blob: 1d4868c979e661671f23017f4ef851d53228ce3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
function Out=Setscaling(varargin)
  global LOGX LOGY SCALEX SCALEY;
  Nargs= length(varargin)
  if Nargs==0
    Out=[SCALEY,LOGX,LOGY];
    return;
  end;
  for I=1:Nargs
    Tmp=varargin(I);
    if type(Tmp)==1
      SCALEY=Tmp;
    end;
    if type(Tmp)==10
      if Tmp=="l"
        LOGX=0;
        LOGY=1;
      elseif Tmp=="ll"
        LOGX=1
        LOGY=1
      else
        LOGX=0
        LOGY=0
      end;
    end;
  end;
  Out=[SCALEY,LOGX,LOGY];
endfunction;