changeset 19825: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 7eff42dd717d
children 4f6ae6b94abe d17628a27a39
files doc/interpreter/plotimages.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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");