changeset 11820:7212edd02db1 release-3-0-x

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 4bfc7d0c00e1
children 018dff0b30d2
files scripts/ChangeLog scripts/plot/contourf.m
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Sun May 18 22:40:28 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 May 18 22:40:28 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