Mercurial > octave-nkf
changeset 8085:0a48abc35932
Make contourf work for equal-size matrices (again).
author | kai@LxLap.site |
---|---|
date | Mon, 08 Sep 2008 10:48:25 -0400 |
parents | 46aa04055325 |
children | 83646120b54c |
files | scripts/ChangeLog scripts/plot/contourf.m |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 <kai.habel@gmx.de> + + * plot/contourf.m: Fix case for equal-sized matrices + of X and Y. + 2008-09-02 David Bateman <dbateman@free.fr> * plot/__add_datasource__.m: Fix indexing of varargin.
--- 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