octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

patch for slice


From: Kai Habel
Subject: patch for slice
Date: Tue, 11 Dec 2007 13:13:15 +0100
User-agent: Thunderbird 2.0.0.6 (X11/20070801)

Hello,

this patch fixes some trivial problems with slice.m

ChangeLog:

2007-12-11  Kai Habel  <address@hidden>

  * plot/slice.m: Remove unused variable, set [x|y|z]grid to "on" and
  box to "off" for used axes.





diff -u scripts.orig/plot/slice.m scripts/plot/slice.m
--- scripts.orig/plot/slice.m   2007-12-11 11:58:13.000000000 +0100
+++ scripts/plot/slice.m        2007-12-11 11:59:38.000000000 +0100
@@ -72,7 +72,6 @@
 function h = slice (varargin)
 
   method = "linear";
-  extrapval = NA;
   nargs = nargin;
 
   if (ischar (varargin{end}))
@@ -160,11 +159,12 @@
     endif
   else
     vi = interp3 (x, y, z, v, sx, sy, sz);
-    tmp(sidx++) = surface (sx, sy, sz, vi);
+    tmp = surface (sx, sy, sz, vi);
   endif
 
   if (! ishold ())
-    set (ax, "view", [-37.5, 30.0]);
+    set (ax, "view", [-37.5, 30.0], "box", "off", "xgrid", "on",
+        "ygrid", "on", "zgrid", "on");
   endif
 
   if (nargout > 0)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]