changeset 11896:424f1b00833f release-3-0-x

Make contourf work for equal-size matrices (again).
author kai@LxLap.site
date Sat, 13 Dec 2008 17:30:18 +0100
parents a85bde34b8b9
children ee24b6c413f6
files scripts/ChangeLog scripts/plot/contourf.m
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Mon Dec 08 13:18:26 2008 +0100
+++ b/scripts/ChangeLog	Sat Dec 13 17:30:18 2008 +0100
@@ -1,3 +1,8 @@
+2008-09-08  Kai Habel  <kai.habel@gmx.de>
+
+        * plot/contourf.m: Fix case for equal-sized matrices
+        of X and Y.
+
 2008-11-26  Francesco Potort́  <pot@gnu.org>
 
 	* specfun/nchoosek.m: Set max_recursion_depth and use a subfunction.
--- a/scripts/plot/contourf.m	Mon Dec 08 13:18:26 2008 +0100
+++ b/scripts/plot/contourf.m	Sat Dec 13 17:30:18 2008 +0100
@@ -227,7 +227,7 @@
     arg(1:4) = [];
   endif
 
-  if (!isvector (X) || !isvector (Y) && any (size (X) != size (Y)))
+  if (! ((isvector (X) && isvector (Y)) || size_equal (X, Y)))
     error ("patch: X and Y must be of same size")
   endif