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 diff
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -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
+++ 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