Mercurial > hg > octave-lyh
diff scripts/plot/surf.m @ 11101:1f9ab076f5f7
Include the 4 input (color) in the docstrings for mesh() and surf().
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Sun, 17 Oct 2010 23:33:55 +0800 |
parents | 95c3e38098bf |
children | fd0a3ac60b0e |
line wrap: on
line diff
--- a/scripts/plot/surf.m +++ b/scripts/plot/surf.m @@ -18,13 +18,21 @@ ## -*- texinfo -*- ## @deftypefn {Function File} {} surf (@var{x}, @var{y}, @var{z}) +## @deftypefnx {Function File} {} surf (@var{z}) +## @deftypefnx {Function File} {} surf (@dots{}, @var{c}) +## @deftypefnx {Function File} {} surf (@var{hax}, @dots{}) +## @deftypefnx {Function File} {@var{h} = } surf (@dots{}) ## Plot a surface given matrices @var{x}, and @var{y} from @code{meshgrid} and ## a matrix @var{z} corresponding to the @var{x} and @var{y} coordinates of ## the mesh. If @var{x} and @var{y} are vectors, then a typical vertex ## is (@var{x}(j), @var{y}(i), @var{z}(i,j)). Thus, columns of @var{z} ## correspond to different @var{x} values and rows of @var{z} correspond ## to different @var{y} values. -## @seealso{mesh, surface} +## +## The color of the surface is derirved from the @code{colormap} and +## the value of @var{z}. Optionally the color of the surface can be +## specified independent of of @var{z}, by adding a fourth matrix, @var{c}. +## @seealso{colormap, contour, meshgrid, mesh} ## @end deftypefn ## Author: Kai Habel <kai.habel@gmx.de>