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

if type(value)==10
   select value
   case 'mean'
      out=list("FaceColor","mean","EdgeColor","none");
   case 'flat'
      out=list("FaceColor","flat","EdgeColor","none");
   case 'faceted'
      out=list("FaceColor","flat","EdgeColor","default");
   case 'interp'
      out=list("FaceColor","interp","EdgeColor","none");
   else
     _error(sprintf('%s : unknown shading specification ''%s''',typeOfPlot,value))
   end
else
   _error(sprintf('%s : shading specification must be a string',typeOfPlot))
end

endfunction // end of parseShading