# HG changeset patch # User Rik # Date 1244052771 25200 # Node ID 20ee7f9cc904622950abb17551befc7d63e7daa4 # Parent 0d9f925b97058e5e846ac8668126510619d18f84 Correct bugs in plot images produced for documentation Initialized random number generator so hist plot is reproducible. Fixed errorbar plot where errorbars were not centered on data. Corrected typo in legend of interpft. 2009-06-03 Rik * interpreter/plotimages.m: Correct errorbar plot for docs. Make hist plot reprodroducible for docs. * interpreter/interpimages.m: Correct typo in legend of interpft plot for docs diff -r 0d9f925b9705 -r 20ee7f9cc904 doc/ChangeLog --- a/doc/ChangeLog Wed Jun 03 10:54:36 2009 -0400 +++ b/doc/ChangeLog Wed Jun 03 11:12:51 2009 -0700 @@ -1,3 +1,10 @@ +2009-06-03 Rik + + * interpreter/plotimages.m: Correct errorbar plot for docs. Make hist plot + reprodroducible for docs. + * interpreter/interpimages.m: Correct typo in legend of interpft plot for + docs + 2009-06-03 Jaroslav Hajek * Makefile.in: Omit conf.texi in DISTFILES. diff -r 0d9f925b9705 -r 20ee7f9cc904 doc/interpreter/interpimages.m --- a/doc/interpreter/interpimages.m Wed Jun 03 10:54:36 2009 -0400 +++ b/doc/interpreter/interpimages.m Wed Jun 03 11:12:51 2009 -0700 @@ -31,7 +31,7 @@ yp = sin (4*ti + 0.3) .* cos (3*ti - 0.1); plot (ti, yp, 'g', ti, interp1(t, y, ti, 'spline'), 'b', ... ti, interpft (y, k), 'c', t, y, 'r+'); - legend ('sin(4t+0.3)cos(3t-0.1','spline','interpft','data'); + legend ('sin(4t+0.3)cos(3t-0.1)','spline','interpft','data'); print (cstrcat (nm, ".", typ), cstrcat ("-d", typ)) elseif (strcmp (nm, "interpn")) x = y = z = -1:1; diff -r 0d9f925b9705 -r 20ee7f9cc904 doc/interpreter/plotimages.m --- a/doc/interpreter/plotimages.m Wed Jun 03 10:54:36 2009 -0400 +++ b/doc/interpreter/plotimages.m Wed Jun 03 11:12:51 2009 -0700 @@ -30,14 +30,17 @@ plot (x, sin (x)); print (cstrcat (nm, ".", typ), cstrcat ("-d", typ)) elseif (strcmp (nm, "hist")) + rand ("state", 2); hist (randn (10000, 1), 30); print (cstrcat (nm, ".", typ), cstrcat ("-d", typ)) elseif (strcmp (nm, "errorbar")) + rand ("state", 2); x = 0:0.1:10; y = sin (x); - yp = 0.1 .* randn (size (x)); - ym = -0.1 .* randn (size (x)); - errorbar (x, sin (x), ym, yp); + yl = 0.1 .* rand (size (x)); + yu = 0.1 .* rand (size (x)); + errorbar (x, sin (x), yl, yu); + axis ([0, 10, -1.1, 1.1]); print (cstrcat (nm, ".", typ), cstrcat ("-d", typ)) elseif (strcmp (nm, "polar")) polar (0:0.1:10*pi, 0:0.1:10*pi);