Revision: 8033
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8033&view=rev
Author:   astraw
Date:     2009-12-15 02:57:32 +0000 (Tue, 15 Dec 2009)

Log Message:
-----------
boxplot demo 2: set random seed so plots are identical

Modified Paths:
--------------
    trunk/matplotlib/examples/pylab_examples/boxplot_demo2.py

Modified: trunk/matplotlib/examples/pylab_examples/boxplot_demo2.py
===================================================================
--- trunk/matplotlib/examples/pylab_examples/boxplot_demo2.py   2009-12-13 
21:03:44 UTC (rev 8032)
+++ trunk/matplotlib/examples/pylab_examples/boxplot_demo2.py   2009-12-15 
02:57:32 UTC (rev 8033)
@@ -16,6 +16,9 @@
 randomDists = ['Normal(1,1)',' Lognormal(1,1)', 'Exp(1)', 'Gumbel(6,4)',
               'Triangular(2,9,11)']
 N = 500
+
+np.random.seed(3) # make identical plots each time
+
 norm = np.random.normal(1,1, N)
 logn = np.random.lognormal(1,1, N)
 expo = np.random.exponential(1, N)


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to