# HG changeset patch # User David Bateman # Date 1217118576 -7200 # Node ID 7212edd02db13c3a14b4c7fb263106edb9ad02c0 # Parent 4bfc7d0c00e1ed9f33439dc61728fb2919dc319a Allow X/Y to be unequal vectors in contourf diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,4 +1,6 @@ 2008-07-28 David Bateman + + * plot/contourf.m: Allow X,Y to be unequal vectors. * plot/shading.m: Clarify help string. 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 (any (size (X) != size (Y))) + if (!isvector (X) || !isvector (Y) && any (size (X) != size (Y))) error ("patch: X and Y must be of same size") endif