diff doc/interpreter/plotimages.m @ 19791:b254a2e0859c

plotimages.m: Produce the same hist plot for documentation each time (bug #44263) * plotimages.m: Initialize randn random number generator to known state before generating data for hist plot.
author Rik <rik@octave.org>
date Fri, 20 Feb 2015 08:45:23 -0800
parents 606b05352351
children c3c1fb44f9b5 8b1e030d3d4f
line wrap: on
line diff
--- a/doc/interpreter/plotimages.m	Fri Feb 20 08:13:24 2015 -0800
+++ b/doc/interpreter/plotimages.m	Fri Feb 20 08:45:23 2015 -0800
@@ -39,7 +39,7 @@
     title ("Simple 2-D Plot");
     print ([nm "." typ], d_typ);
   elseif (strcmp (nm, "hist"))
-    rand ("state", 2);
+    randn ("state", 1);
     hist (randn (10000, 1), 30);
     xlabel ("Value");
     ylabel ("Count");