File: parseCaxis.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 (21 lines) | stat: -rw-r--r-- 493 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
function out = parseCaxis(typeOfPlot,value,pptystring,ppty)

select type(value)
case 10
      select value
      case 'auto'
         out=list(ppty,'auto');
      case 'manual'
         out=list(ppty,'manual");
      else
         _error(sprintf('%s : unknown %s mode',typeOfPlot,ppty));
      end
case 1
      if length(value)==2
         out=list(ppty,value(:)');
      else
         _error(sprintf('%s : %s vector must have the form [min max]',typeOfPlot,ppty));
      end
end

endfunction