Mercurial > octave
diff scripts/plot/draw/stem.m @ 21223:f6aab24ed82e
maint: Periodic merge of stable to default.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 08 Feb 2016 20:36:40 -0800 |
parents | 516bb87ea72e 732ec49d1ec5 |
children | ecce63c99c3f |
line wrap: on
line diff
--- a/scripts/plot/draw/stem.m Mon Feb 08 17:10:30 2016 -0800 +++ b/scripts/plot/draw/stem.m Mon Feb 08 20:36:40 2016 -0800 @@ -204,15 +204,6 @@ %! pause (0.2); %! end -%!error stem () -%!error <can not define Z for 2-D stem plot> stem (1,2,3) -%!error <X and Y must be numeric> stem ({1}) -%!error <X and Y must be numeric> stem (1, {1}) -%!error <inconsistent sizes for X and Y> stem (1:2, 1:3) -%!error <inconsistent sizes for X and Y> stem (1:2, ones (3,3)) -%!error <inconsistent sizes for X and Y> stem (ones (2,2), ones (3,3)) -%!error <No value specified for property "FOO"> stem (1, "FOO") - %!test %! ## stemseries share the same baseline and basevalue %! hf = figure ("visible", "off"); @@ -228,3 +219,14 @@ %! close (hf); %! end_unwind_protect +## Test input validation +%!error stem () +%!error <can not define Z for 2-D stem plot> stem (1,2,3) +%!error <Y must be a vector or 2-D array> stem (ones (2,2,2)) +%!error <X and Y must be numeric> stem ({1}) +%!error <X and Y must be numeric> stem (1, {1}) +%!error <inconsistent sizes for X and Y> stem (1:2, 1:3) +%!error <inconsistent sizes for X and Y> stem (1:2, ones (3,3)) +%!error <inconsistent sizes for X and Y> stem (ones (2,2), ones (3,3)) +%!error <No value specified for property "FOO"> stem (1, "FOO") +