# HG changeset patch # User kai@LxLap.site # Date 1229185818 -3600 # Node ID 424f1b00833fd683d3b9eb311a8b831ae5ddb079 # Parent a85bde34b8b9d7521b388b0f8b90f4282f11161e Make contourf work for equal-size matrices (again). diff -r a85bde34b8b9 -r 424f1b00833f scripts/ChangeLog --- 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 + + * plot/contourf.m: Fix case for equal-sized matrices + of X and Y. + 2008-11-26 Francesco Potort́ * specfun/nchoosek.m: Set max_recursion_depth and use a subfunction. diff -r a85bde34b8b9 -r 424f1b00833f scripts/plot/contourf.m --- 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