# HG changeset patch # User Rik # Date 1380077936 25200 # Node ID 25f6e31bbce96dbea593566999cfdd1a5f34ec69 # Parent 6edc451629a6bcb7d7a2bb52e30af57f0feb6a85 cylinder.m: Correct indentation. * scripts/plot/cylinder.m: Correct indentation. diff --git a/scripts/plot/cylinder.m b/scripts/plot/cylinder.m --- 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))