# HG changeset patch # User Rik # Date 1244052771 25200 # Node ID 818a05f4378edf09c05e2fc94c31eb91580e2e11 # Parent 0e60041ef2e523d7b5e87189dcd391fa31f8c670 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 0e60041ef2e5 -r 818a05f4378e 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-05-25 Jaroslav Hajek Version 3.2.0 released. diff -r 0e60041ef2e5 -r 818a05f4378e 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 0e60041ef2e5 -r 818a05f4378e 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);