diff scripts/plot/loglog.m @ 13090:7f127e079a7c

codesprint: demos for semilogx, semilogy, and loglog * semilogx.m, semilogy.m, loglog.m: New demos.
author John W. Eaton <jwe@octave.org>
date Sat, 03 Sep 2011 18:46:09 -0400
parents c792872f8942
children 2e2738837a24
line wrap: on
line diff
--- 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)