# HG changeset patch # User jwe # Date 1197396126 0 # Node ID 7c0a18b10c8e4ab942223832c7e5c7987be3c340 # Parent e5055ed23f5249197120b6328fbbb4e733d15241 [project @ 2007-12-11 18:02:06 by jwe] diff -r e5055ed23f52 -r 7c0a18b10c8e scripts/ChangeLog --- a/scripts/ChangeLog Tue Dec 11 17:36:20 2007 +0000 +++ b/scripts/ChangeLog Tue Dec 11 18:02:06 2007 +0000 @@ -1,3 +1,8 @@ +2007-12-11 John W. Eaton + + * plot/__plt2vs__.m, plot/__plt2sv__.m: New functions. + * plot/__plt2__.m: Handle scalar-vector and vector-scalar cases. + 2007-12-11 David Bateman * miscelleaneous/fullfile.m: Ignore empty arguments. diff -r e5055ed23f52 -r 7c0a18b10c8e scripts/plot/__plt2__.m --- a/scripts/plot/__plt2__.m Tue Dec 11 17:36:20 2007 +0000 +++ b/scripts/plot/__plt2__.m Tue Dec 11 18:02:06 2007 +0000 @@ -51,11 +51,15 @@ if (isscalar (x1)) if (isscalar (x2)) retval = __plt2ss__ (h, x1, x2, options, properties); + elseif (isvector (x2)) + retval = __plt2sv__ (h, x1, x2, options, properties); else error ("__plt2__: invalid data for plotting"); endif elseif (isvector (x1)) - if (isvector (x2)) + if (isscalar (x2)) + retval = __plt2vs__ (h, x1, x2, options, properties); + elseif (isvector (x2)) retval = __plt2vv__ (h, x1, x2, options, properties); elseif (ismatrix (x2)) retval = __plt2vm__ (h, x1, x2, options, properties);