Mercurial > octave-nkf
changeset 7982:4e0fa430f840
Allow X/Y to be unequal vectors in contourf
author | David Bateman <dbateman@free.fr> |
---|---|
date | Sun, 27 Jul 2008 02:29:36 +0200 |
parents | 90413830b690 |
children | 91d020444da7 |
files | scripts/ChangeLog scripts/plot/contourf.m |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog Sun Jul 27 02:23:42 2008 +0200 +++ b/scripts/ChangeLog Sun Jul 27 02:29:36 2008 +0200 @@ -1,4 +1,6 @@ 2008-07-28 David Bateman <dbateman@free.fr> + + * plot/contourf.m: Allow X,Y to be unequal vectors. * plot/shading.m: Clarify help string.
--- a/scripts/plot/contourf.m Sun Jul 27 02:23:42 2008 +0200 +++ b/scripts/plot/contourf.m Sun Jul 27 02:29:36 2008 +0200 @@ -227,7 +227,7 @@ arg(1:4) = []; endif - if (any (size (X) != size (Y))) + if (!isvector (X) || !isvector (Y) && any (size (X) != size (Y))) error ("patch: X and Y must be of same size") endif