# HG changeset patch # User Ben Abbott # Date 1287329635 -28800 # Node ID 1f9ab076f5f773c1e669ea085a55deda4a0f8beb # Parent cdf940db26a09504521fb45bf359833a684057bd Include the 4 input (color) in the docstrings for mesh() and surf(). diff -r cdf940db26a0 -r 1f9ab076f5f7 scripts/ChangeLog --- a/scripts/ChangeLog Sat Oct 16 13:27:18 2010 -0400 +++ b/scripts/ChangeLog Sun Oct 17 23:33:55 2010 +0800 @@ -1,3 +1,8 @@ +2010-10-17 Ben Abbott + + * plot/mesh.m, plot/surf.m: Include the 4th input (color) in the + docstring. + 2010-10-16 Ben Abbott * plot/private/__errplot__.m, plot/errorbar.m: Allow line and marker diff -r cdf940db26a0 -r 1f9ab076f5f7 scripts/plot/mesh.m --- a/scripts/plot/mesh.m Sat Oct 16 13:27:18 2010 -0400 +++ b/scripts/plot/mesh.m Sun Oct 17 23:33:55 2010 +0800 @@ -18,14 +18,22 @@ ## . ## -*- texinfo -*- -## @deftypefn {Function File} {} mesh (@var{x}, @var{y}, @var{z}) +## @deftypefn {Function File} {} mesh (@var{x}, @var{y}, @var{z}) +## @deftypefnx {Function File} {} mesh (@var{z}) +## @deftypefnx {Function File} {} mesh (@dots{}, @var{c}) +## @deftypefnx {Function File} {} mesh (@var{hax}, @dots{}) +## @deftypefnx {Function File} {@var{h} = } mesh (@dots{}) ## Plot a mesh 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{meshgrid, contour} +## +## The color of the mesh is derirved from the @code{colormap} +## and the value of @var{z}. Optionally the color of the mesh can be +## specified independent of of @var{z}, by adding a fourth matrix, @var{c}. +## @seealso{colormap, contour, meshgrid, surf} ## @end deftypefn ## Author: jwe diff -r cdf940db26a0 -r 1f9ab076f5f7 scripts/plot/surf.m --- a/scripts/plot/surf.m Sat Oct 16 13:27:18 2010 -0400 +++ b/scripts/plot/surf.m Sun Oct 17 23:33:55 2010 +0800 @@ -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