File: parseRatio.sci

package info (click to toggle)
scilab-plotlib 0.41-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,196 kB
  • sloc: xml: 3,308; makefile: 15
file content (14 lines) | stat: -rw-r--r-- 350 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function out=parseRatio(typeOfPlot,value,pptystring,ppty)

select type(value)
case 1 // a matrix (must be a 3 element vector)
   if length(value)~=3
      _error(sprintf('%s : %s spec must be a 3 element vector',typeOfPlot,pptystring));
    end
else
   _error(sprintf('%s : missing %s spec',typeOfPlot,ppty));
end

out=list(ppty,value);

endfunction