# 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 --git a/scripts/plot/loglog.m b/scripts/plot/loglog.m --- a/scripts/plot/loglog.m +++ b/scripts/plot/loglog.m @@ -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 --git a/scripts/plot/semilogx.m b/scripts/plot/semilogx.m --- a/scripts/plot/semilogx.m +++ b/scripts/plot/semilogx.m @@ -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 --git a/scripts/plot/semilogy.m b/scripts/plot/semilogy.m --- a/scripts/plot/semilogy.m +++ b/scripts/plot/semilogy.m @@ -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)