changeset 17476:f0f4b524b6d0

maint: Correct indentation for several plot routines. * scripts/plot/ellipsoid.m, scripts/plot/rose.m, scripts/plot/sphere.m, scripts/plot/surfnorm.m: maint: Correct indentation for several plot routines.
author Rik <rik@octave.org>
date Wed, 25 Sep 2013 07:48:58 -0700
parents 25f6e31bbce9
children f44839118b5f
files scripts/plot/ellipsoid.m scripts/plot/rose.m scripts/plot/sphere.m scripts/plot/surfnorm.m
diffstat 4 files changed, 36 insertions(+), 36 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/ellipsoid.m	Tue Sep 24 19:58:56 2013 -0700
+++ b/scripts/plot/ellipsoid.m	Wed Sep 25 07:48:58 2013 -0700
@@ -74,10 +74,10 @@
     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);
     
--- a/scripts/plot/rose.m	Tue Sep 24 19:58:56 2013 -0700
+++ b/scripts/plot/rose.m	Wed Sep 25 07:48:58 2013 -0700
@@ -90,10 +90,10 @@
   r(3:4:end, :) = nn;
 
   if (nargout < 2)
-  oldfig = [];
-  if (! isempty (hax))
-    oldfig = get (0, "currentfigure");
-  endif
+    oldfig = [];
+    if (! isempty (hax))
+      oldfig = get (0, "currentfigure");
+    endif
     unwind_protect
       hax = newplot (hax);
       htmp = polar (th, r);
--- a/scripts/plot/sphere.m	Tue Sep 24 19:58:56 2013 -0700
+++ b/scripts/plot/sphere.m	Wed Sep 25 07:48:58 2013 -0700
@@ -71,10 +71,10 @@
     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);
     
--- a/scripts/plot/surfnorm.m	Tue Sep 24 19:58:56 2013 -0700
+++ b/scripts/plot/surfnorm.m	Wed Sep 25 07:48:58 2013 -0700
@@ -114,30 +114,30 @@
   nz = nz ./ len;
 
   if (nargout == 0)
-  oldfig = [];
-  if (! isempty (hax))
-    oldfig = get (0, "currentfigure");
-  endif
-   unwind_protect
-     hax = newplot (hax);
-     
-     surf (x, y, z, varargin{ioff:end});
-     old_hold_state = get (hax, "nextplot");
-     unwind_protect
-       set (hax, "nextplot", "add");
-       plot3 ([x(:)'; x(:).' + nx(:).' ; NaN(size(x(:).'))](:),
-              [y(:)'; y(:).' + ny(:).' ; NaN(size(y(:).'))](:),
-              [z(:)'; z(:).' + nz(:).' ; NaN(size(z(:).'))](:),
-              varargin{ioff:end});
-     unwind_protect_cleanup
-       set (hax, "nextplot", old_hold_state);
-     end_unwind_protect
-     
-   unwind_protect_cleanup
-     if (! isempty (oldfig))
-       set (0, "currentfigure", oldfig);
-     endif
-   end_unwind_protect
+    oldfig = [];
+    if (! isempty (hax))
+      oldfig = get (0, "currentfigure");
+    endif
+    unwind_protect
+      hax = newplot (hax);
+      
+      surf (x, y, z, varargin{ioff:end});
+      old_hold_state = get (hax, "nextplot");
+      unwind_protect
+        set (hax, "nextplot", "add");
+        plot3 ([x(:)'; x(:).' + nx(:).' ; NaN(size(x(:).'))](:),
+               [y(:)'; y(:).' + ny(:).' ; NaN(size(y(:).'))](:),
+               [z(:)'; z(:).' + nz(:).' ; NaN(size(z(:).'))](:),
+               varargin{ioff:end});
+      unwind_protect_cleanup
+        set (hax, "nextplot", old_hold_state);
+      end_unwind_protect
+      
+    unwind_protect_cleanup
+      if (! isempty (oldfig))
+        set (0, "currentfigure", oldfig);
+      endif
+    end_unwind_protect
   else
     Nx = nx;
     Ny = ny;