# HG changeset patch # User kai@LxLap.site # Date 1220885305 14400 # Node ID 0a48abc3593216f87bfbebd457f7ac6078fa05a6 # Parent 46aa040553254660894f13bf131688ca8d384527 Make contourf work for equal-size matrices (again). diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -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 --git a/scripts/plot/contourf.m b/scripts/plot/contourf.m --- a/scripts/plot/contourf.m +++ b/scripts/plot/contourf.m @@ -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