Mercurial > hg > octave-nkf
changeset 14849:f6d3d5b0bd42
test: Use Octave coding conventions for tests for line() and toc().
* line.m, data.cc (toc): Use Octave coding conventions for tests.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sun, 08 Jul 2012 12:00:45 -0700 |
parents | 4563d9935853 |
children | cfb64ea5c6a3 |
files | scripts/plot/line.m src/data.cc |
diffstat | 2 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/line.m +++ b/scripts/plot/line.m @@ -48,13 +48,13 @@ %! x = 0:0.3:10; %! y1 = cos (x); %! y2 = sin (x); -%! subplot (3, 1, 1) +%! subplot (3,1,1); %! args = {"color", "b", "marker", "s"}; %! line ([x(:), x(:)], [y1(:), y2(:)], args{:}) %! title ("Test broadcasting for line()") -%! subplot (3, 1, 2) +%! subplot (3,1,2); %! line (x(:), [y1(:), y2(:)], args{:}) -%! subplot (3, 1, 3) +%! subplot (3,1,3); %! line ([x(:), x(:)+pi/2], y1(:), args{:}) %! xlim ([0 10])