Mercurial > hg > octave-avbm
changeset 7295:e00828759d1b
[project @ 2007-12-11 19:23:34 by jwe]
author | jwe |
---|---|
date | Tue, 11 Dec 2007 19:23:34 +0000 |
parents | fb902b3b2a5d |
children | c06476bb301d |
files | scripts/ChangeLog scripts/plot/__patch__.m |
diffstat | 2 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -8,6 +8,9 @@ 2007-12-11 Kai Habel <kai.habel@gmx.de> + * plot/__patch__.m: Fix typo. Improve argument checking, so that a + color string is not taken as z value. + * plot/slice.m: Remove unused variable, set xgrid, ygrid, and zgrid to "on" and box to "off" for used axes.
--- a/scripts/plot/__patch__.m +++ b/scripts/plot/__patch__.m @@ -47,14 +47,14 @@ iarg += 2; if (nargin > 3 && ndims (varargin{3}) == 2 && ndims (x) == 2 - && isequal (size (varargin{3}), size (x))) + && size_equal(x, varargin{3}) && !ischar(varargin{3})) z = varargin{3}; have_z = true; iarg++; endif elseif (ischar (varargin{1}) && (strcmp (tolower (varargin{1}), "faces") - || trcmp (tolower (varargin{1}), "vertices"))) + || strcmp (tolower (varargin{1}), "vertices"))) if (! isnumeric (varargin{2})) fail = true; return; @@ -181,7 +181,6 @@ h = __go_patch__ (p, "xdata", x, "ydata", y, "faces", faces, "vertices", vert, cargs{:}, varargin{iarg:end}); - if (have_z) set (h, "zdata", z); endif