Mercurial > octave
changeset 24316:01fc0e70d4c1
Use common coding style of 'htmp' passed to output 'h' for plot m-files.
* compass.m, feather.m, triplot.m: Use 'htmp' variable name for consistency
with other plot routines.
author | Rik <rik@octave.org> |
---|---|
date | Sun, 26 Nov 2017 21:20:41 -0800 |
parents | 0d4db91b7299 |
children | 221f1eacd66a |
files | scripts/plot/draw/compass.m scripts/plot/draw/feather.m scripts/plot/draw/triplot.m |
diffstat | 3 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/draw/compass.m Sun Nov 26 21:06:04 2017 -0800 +++ b/scripts/plot/draw/compass.m Sun Nov 26 21:20:41 2017 -0800 @@ -107,7 +107,7 @@ endif unwind_protect hax = newplot (hax); - hlist = polar (r, p, line_spec); + htmp = polar (r, p, line_spec); unwind_protect_cleanup if (! isempty (oldfig)) set (0, "currentfigure", oldfig); @@ -115,7 +115,7 @@ end_unwind_protect if (nargout > 0) - h = hlist; + h = htmp; endif endfunction
--- a/scripts/plot/draw/feather.m Sun Nov 26 21:06:04 2017 -0800 +++ b/scripts/plot/draw/feather.m Sun Nov 26 21:20:41 2017 -0800 @@ -106,7 +106,7 @@ endif unwind_protect hax = newplot (hax); - hlist = plot (x, y, line_spec, [1, n], [0, 0], line_spec); + htmp = plot (x, y, line_spec, [1, n], [0, 0], line_spec); unwind_protect_cleanup if (! isempty (oldfig)) set (0, "currentfigure", oldfig); @@ -114,7 +114,7 @@ end_unwind_protect if (nargout > 0) - h = hlist; + h = htmp; endif endfunction
--- a/scripts/plot/draw/triplot.m Sun Nov 26 21:06:04 2017 -0800 +++ b/scripts/plot/draw/triplot.m Sun Nov 26 21:20:41 2017 -0800 @@ -43,11 +43,11 @@ idx = tri(:, [1, 2, 3, 1]).'; nt = rows (tri); - handle = plot ([x(idx); NaN(1, nt)](:), - [y(idx); NaN(1, nt)](:), varargin{:}); + htmp = plot ([x(idx); NaN(1, nt)](:), + [y(idx); NaN(1, nt)](:), varargin{:}); if (nargout > 0) - h = handle; + h = htmp; endif endfunction