# HG changeset patch # User John W. Eaton # Date 1315089969 14400 # Node ID 7f127e079a7c2162474890269d9562338805c55d # Parent 87015276d6255274954d630beb30343588462eb4 codesprint: demos for semilogx, semilogy, and loglog * semilogx.m, semilogy.m, loglog.m: New demos. diff -r 87015276d625 -r 7f127e079a7c scripts/plot/loglog.m --- a/scripts/plot/loglog.m Sat Sep 03 18:28:58 2011 -0400 +++ b/scripts/plot/loglog.m Sat Sep 03 18:46:09 2011 -0400 @@ -60,3 +60,11 @@ endfunction +%!demo +%! t = 1:0.01:10; +%! x = sort ((t .* (1 + rand (size (t)))) .^ 2); +%! y = ((t .* (1 + rand (size (t)))) .^ 2); +%! loglog (x, y); + +## Remove from test statistics. No real tests possible. +%!assert (1) diff -r 87015276d625 -r 7f127e079a7c scripts/plot/semilogx.m --- a/scripts/plot/semilogx.m Sat Sep 03 18:28:58 2011 -0400 +++ b/scripts/plot/semilogx.m Sat Sep 03 18:46:09 2011 -0400 @@ -59,3 +59,11 @@ end_unwind_protect endfunction + +%!demo +%! x = 1:0.01:10; +%! y = (x .* (1 + rand (size (x)))) .^ 2; +%! semilogx (y, x); + +## Remove from test statistics. No real tests possible. +%!assert (1) diff -r 87015276d625 -r 7f127e079a7c scripts/plot/semilogy.m --- a/scripts/plot/semilogy.m Sat Sep 03 18:28:58 2011 -0400 +++ b/scripts/plot/semilogy.m Sat Sep 03 18:46:09 2011 -0400 @@ -60,3 +60,11 @@ end_unwind_protect endfunction + +%!demo +%! x = 1:0.01:10; +%! y = (x .* (1 + rand (size (x)))) .^ 2; +%! semilogy (x, y); + +## Remove from test statistics. No real tests possible. +%!assert (1)