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

select ppty
case "Marker"
  if type(value)==10
    if length(value)==1
      if ~strindex('.+x*do<>^vs',value)~=[]
        _error(sprintf("%s : %s is not a Marker identifier",typeOfPlot,value))
      end
    elseif and(value~=['none','pentagram'])
        _error(sprintf("%s : %s is not a Marker identifier",typeOfPlot,value))
    end
  else
    _error(sprintf("%s : missing Marker identifier",typeOfPlot))
  end
case "MarkerSize"
  if type(value)==1
    value=abs(value);
  else
    _error(sprintf('%s : missing MarkerSize value',typeOfPlot));  
  end
end

out=list(ppty,value);

endfunction