Mercurial > jwe > octave
changeset 24819:bdec5e695ec3
scatter3.m, surf.m: Match output variable name to documentation.
* scatter3.m, surf.m: Declare output 'h' in function prototype to match
documentation and other plot routines.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 01 Mar 2018 20:53:29 -0800 |
parents | d55e100aebc9 |
children | 735175432a20 |
files | scripts/plot/draw/scatter3.m scripts/plot/draw/surf.m |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/draw/scatter3.m Thu Mar 01 20:36:15 2018 -0800 +++ b/scripts/plot/draw/scatter3.m Thu Mar 01 20:53:29 2018 -0800 @@ -65,7 +65,7 @@ ## @seealso{scatter, patch, plot} ## @end deftypefn -function retval = scatter3 (varargin) +function h = scatter3 (varargin) [hax, varargin, nargin] = __plt_get_axis_arg__ ("scatter3", varargin{:}); @@ -93,7 +93,7 @@ end_unwind_protect if (nargout > 0) - retval = htmp; + h = htmp; endif endfunction
--- a/scripts/plot/draw/surf.m Thu Mar 01 20:36:15 2018 -0800 +++ b/scripts/plot/draw/surf.m Thu Mar 01 20:53:29 2018 -0800 @@ -58,7 +58,7 @@ ## Author: Kai Habel <kai.habel@gmx.de> -function retval = surf (varargin) +function h = surf (varargin) [hax, varargin] = __plt_get_axis_arg__ ("surf", varargin{:}); @@ -83,7 +83,7 @@ end_unwind_protect if (nargout > 0) - retval = htmp; + h = htmp; endif endfunction