File: TIME_f.sci

package info (click to toggle)
scilab 2.4-1
  • links: PTS
  • area: non-free
  • in suites: potato, slink
  • size: 55,196 kB
  • ctags: 38,019
  • sloc: ansic: 231,970; fortran: 148,976; tcl: 7,099; makefile: 4,585; sh: 2,978; csh: 154; cpp: 101; asm: 39; sed: 5
file content (35 lines) | stat: -rw-r--r-- 1,001 bytes parent folder | download | duplicates (2)
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
29
30
31
32
33
34
35
function [x,y,typ]=TIME_f(job,arg1,arg2)
// Copyright INRIA
x=[];y=[],typ=[]
select job
case 'plot' then
  standard_draw(arg1)
case 'getinputs' then
  [x,y,typ]=standard_inputs(arg1)
case 'getoutputs' then
  [x,y,typ]=standard_outputs(arg1)
case 'getorigin' then
  [x,y]=standard_origin(arg1)
case 'set' then
  x=arg1
  x(3)(11)=[] //compatibility
case 'define' then
  model=list('timblk',[],1,[],[],[],[],[],[],'c',[],[%f %t],' ',list())
  gr_i=['wd=xget(''wdim'').*[1.016,1.12];';
    'thick=xget(''thickness'');xset(''thickness'',2);';
    'p=wd(2)/wd(1);p=1;';
    'rx=sz(1)*p/2;ry=sz(2)/2;';
    'xarc(orig(1)+0.05*sz(1),orig(2)+0.95*sz(2),0.9*sz(1)*p,0.9*sz(2),0,360*64);';
    'xset(''thickness'',1);';
    'xx=[orig(1)+rx    orig(1)+rx;';
    'orig(1)+rx    orig(1)+rx+0.6*rx*cos(%pi/6)];';
    'yy=[orig(2)+ry    orig(2)+ry ;';
    '	  orig(2)+1.8*ry  orig(2)+ry+0.6*ry*sin(%pi/6)];';
    'xsegs(xx,yy,0);';
    'xset(''thickness'',thick);']
   x=standard_define([2 2],model,[],gr_i)
end