Mercurial > hg > octave-lyh
comparison scripts/plot/surfl.m @ 9040:dbd0c77e575e
Cleanup documentation file plot.texi
Spellcheck
Stylecheck (Mostly double spaces after periods)
author | Rik <rdrider0-list@yahoo.com> |
---|---|
date | Sun, 22 Mar 2009 14:40:24 -0700 |
parents | cf2163418140 |
children | 1bf0ce0930be |
comparison
equal
deleted
inserted
replaced
9039:51dc9691f23f | 9040:dbd0c77e575e |
---|---|
19 ## -*- texinfo -*- | 19 ## -*- texinfo -*- |
20 ## @deftypefn {Function File} {} surfl (@var{x}, @var{y}, @var{z}) | 20 ## @deftypefn {Function File} {} surfl (@var{x}, @var{y}, @var{z}) |
21 ## @deftypefnx {Function File} {} surfl (@var{z}) | 21 ## @deftypefnx {Function File} {} surfl (@var{z}) |
22 ## @deftypefnx {Function File} {} surfl (@var{x}, @var{y}, @var{z}, @var{L}) | 22 ## @deftypefnx {Function File} {} surfl (@var{x}, @var{y}, @var{z}, @var{L}) |
23 ## @deftypefnx {Function File} {} surfl (@var{x}, @var{y}, @var{z}, @var{L}, @var{P}) | 23 ## @deftypefnx {Function File} {} surfl (@var{x}, @var{y}, @var{z}, @var{L}, @var{P}) |
24 ## @deftypefnx {Function File} {} surfl (...,"light") | 24 ## @deftypefnx {Function File} {} surfl (@dots{},"light") |
25 ## Plot a lighted surface given matrices @var{x}, and @var{y} from @code{meshgrid} and | 25 ## Plot a lighted surface given matrices @var{x}, and @var{y} from @code{meshgrid} and |
26 ## a matrix @var{z} corresponding to the @var{x} and @var{y} coordinates of | 26 ## a matrix @var{z} corresponding to the @var{x} and @var{y} coordinates of |
27 ## the mesh. If @var{x} and @var{y} are vectors, then a typical vertex | 27 ## the mesh. If @var{x} and @var{y} are vectors, then a typical vertex |
28 ## is (@var{x}(j), @var{y}(i), @var{z}(i,j)). Thus, columns of @var{z} | 28 ## is (@var{x}(j), @var{y}(i), @var{z}(i,j)). Thus, columns of @var{z} |
29 ## correspond to different @var{x} values and rows of @var{z} correspond | 29 ## correspond to different @var{x} values and rows of @var{z} correspond |
30 ## to different @var{y} values. | 30 ## to different @var{y} values. |
31 ## | 31 ## |
32 ## The light direction can be specified using @var{L}. It can be | 32 ## The light direction can be specified using @var{L}. It can be |
33 ## given as 2-element vector [azimuth, elevation] in degrees or as 3-element vector [lx, ly, lz]. | 33 ## given as 2-element vector [azimuth, elevation] in degrees or as 3-element vector [lx, ly, lz]. |
34 ## The default value is rotated 45° counter-clockwise from the current view. | 34 ## The default value is rotated 45° counter-clockwise from the current view. |
35 ## | 35 ## |
36 ## The material properties of the surface can specified using a 4-element vector | 36 ## The material properties of the surface can specified using a 4-element vector |
37 ## @var{P} = [@var{AM} @var{D} @var{SP} @var{exp}] which defaults to | 37 ## @var{P} = [@var{AM} @var{D} @var{SP} @var{exp}] which defaults to |
42 ## @item "SP" strength of specular reflection | 42 ## @item "SP" strength of specular reflection |
43 ## @item "EXP" specular exponent | 43 ## @item "EXP" specular exponent |
44 ## @end table | 44 ## @end table |
45 ## | 45 ## |
46 ## The default lighting mode "cdata", changes the cdata property to give the impression | 46 ## The default lighting mode "cdata", changes the cdata property to give the impression |
47 ## of a lighted surface. Please note: the alternative "light" mode, which creates a light | 47 ## of a lighted surface. Please note: the alternative "light" mode, which creates a light |
48 ## object to iluminate the the surface is not implemented (yet). | 48 ## object to illuminate the surface is not implemented (yet). |
49 ## | 49 ## |
50 ## Example: | 50 ## Example: |
51 ## | 51 ## |
52 ## @example | 52 ## @example |
53 ## colormap(bone); | 53 ## colormap(bone); |