# HG changeset patch # User kai@LxLap.site # Date 1220885305 14400 # Node ID 0a48abc3593216f87bfbebd457f7ac6078fa05a6 # Parent 46aa040553254660894f13bf131688ca8d384527 Make contourf work for equal-size matrices (again). diff -r 46aa04055325 -r 0a48abc35932 scripts/ChangeLog --- a/scripts/ChangeLog Wed Sep 03 11:40:55 2008 -0400 +++ b/scripts/ChangeLog Mon Sep 08 10:48:25 2008 -0400 @@ -1,3 +1,8 @@ +2008-09-08 Kai Habel + + * plot/contourf.m: Fix case for equal-sized matrices + of X and Y. + 2008-09-02 David Bateman * plot/__add_datasource__.m: Fix indexing of varargin. diff -r 46aa04055325 -r 0a48abc35932 scripts/plot/contourf.m --- a/scripts/plot/contourf.m Wed Sep 03 11:40:55 2008 -0400 +++ b/scripts/plot/contourf.m Mon Sep 08 10:48:25 2008 -0400 @@ -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