Mercurial > hg > octave-nkf
diff scripts/plot/cylinder.m @ 17475:25f6e31bbce9
cylinder.m: Correct indentation.
* scripts/plot/cylinder.m: Correct indentation.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 24 Sep 2013 19:58:56 -0700 |
parents | 68bcac3c043a |
children |
line wrap: on
line diff
--- a/scripts/plot/cylinder.m +++ b/scripts/plot/cylinder.m @@ -55,11 +55,11 @@ [hax, args, nargs] = __plt_get_axis_arg__ ("cylinder", varargin{:}); if (nargs == 0) + r = [1, 1]; n = 20; - r = [1, 1]; elseif (nargs == 1) + r = args{1}; n = 20; - r = args{1}; elseif (nargs == 2) r = args{1}; n = args{2}; @@ -83,13 +83,12 @@ yy = y; zz = z; else - oldfig = []; - if (! isempty (hax)) - oldfig = get (0, "currentfigure"); - endif + oldfig = []; + if (! isempty (hax)) + oldfig = get (0, "currentfigure"); + endif unwind_protect hax = newplot (hax); - surf (x, y, z); unwind_protect_cleanup if (! isempty (oldfig))