Mercurial > hg > octave-nkf
diff scripts/plot/private/__line__.m @ 13238:7467e90271f4
fix thinko in previous change to __line__.m
* __line__.m: Don't check nvecpts against matrix row sizes if there
are no vector data arguments.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 27 Sep 2011 12:49:20 -0400 |
parents | 7b3afe09680b |
children | 571557ddabb9 |
line wrap: on
line diff
--- a/scripts/plot/private/__line__.m +++ b/scripts/plot/private/__line__.m @@ -79,7 +79,6 @@ varargin = {[0, 1], [0, 1]}; num_data_args = 2; nlines = 1; - nvecpts = 2; endif handles = zeros (nlines, 1); @@ -99,7 +98,8 @@ for i = 1:nlines tmp = data(ismat); - if (! size_equal (tmp) || any (nvecpts != cellfun ("size", tmp, 1))) + if (! size_equal (tmp) + || (nvecpts != 0 && any (nvecpts != cellfun ("size", tmp, 1)))) error ("line: data size_mismatch"); endif