Re: [Numpy-discussion] NumPy Histogram for Tentative NumPy Tutorial Questions

2009-11-26 Thread Wayne Watson
josef.p...@gmail.com wrote: > On Thu, Nov 26, 2009 at 9:48 PM, wrote: > >> On Thu, Nov 26, 2009 at 8:18 PM, Wayne Watson >> wrote: >> >>> Yes, I'm just beginning to deal with the contents of NumPy, SciLab, and >>> SciPy. They all have seemed part of one another, but I think I see how >

Re: [Numpy-discussion] NumPy Histogram for Tentative NumPy Tutorial Questions

2009-11-26 Thread josef . pktd
On Thu, Nov 26, 2009 at 9:48 PM, wrote: > On Thu, Nov 26, 2009 at 8:18 PM, Wayne Watson > wrote: >> Yes, I'm just beginning to deal with the contents of NumPy, SciLab, and >> SciPy. They all have seemed part of one another, but I think I see how >> they've divided up the game. NumPy has no graph

Re: [Numpy-discussion] NumPy Histogram for Tentative NumPy Tutorial Questions

2009-11-26 Thread josef . pktd
On Thu, Nov 26, 2009 at 8:18 PM, Wayne Watson wrote: > Yes, I'm just beginning to deal with the contents of NumPy, SciLab, and > SciPy. They all have seemed part of one another, but I think I see how > they've divided up the game. NumPy has no graphics. PyLab has them, > basically under matplotlib

Re: [Numpy-discussion] NumPy Histogram for Tentative NumPy Tutorial Questions

2009-11-26 Thread Wayne Watson
Yes, I'm just beginning to deal with the contents of NumPy, SciLab, and SciPy. They all have seemed part of one another, but I think I see how they've divided up the game. NumPy has no graphics. PyLab has them, basically under matplotlib. histogram seems a bit odd to me. Here's what I mean. I

Re: [Numpy-discussion] NumPy Histogram for Tentative NumPy Tutorial Questions

2009-11-26 Thread Pauli Virtanen
to, 2009-11-26 kello 15:08 -0800, Wayne Watson kirjoitti: > I guess the answer is easy about why a plot is not produced. The remark > in the histogram line says this will not work in numpy. Oh, well. It works as it is intended to work. Numpy's histogram function just computes the histogram -- you

Re: [Numpy-discussion] NumPy Histogram for Tentative NumPy Tutorial Questions

2009-11-26 Thread Wayne Watson
I guess the answer is easy about why a plot is not produced. The remark in the histogram line says this will not work in numpy. Oh, well. Wayne Watson wrote: > josef.p...@gmail.com wrote: > >> On Thu, Nov 26, 2009 at 2:44 PM, Wayne Watson >> wrote: >> >> >>> I decided to try some exam

Re: [Numpy-discussion] NumPy Histogram for Tentative NumPy Tutorial Questions

2009-11-26 Thread Wayne Watson
josef.p...@gmail.com wrote: > On Thu, Nov 26, 2009 at 2:44 PM, Wayne Watson > wrote: > >> I decided to try some example code from Subject. >> >> import numpy >> import pylab >> # Build a vector of 1 normal deviates with variance 0.5^2 and mean 2 >> mu, sigma = 2, 0.5 >> v = numpy.random.nor

Re: [Numpy-discussion] NumPy Histogram for Tentative NumPy Tutorial Questions

2009-11-26 Thread josef . pktd
On Thu, Nov 26, 2009 at 2:44 PM, Wayne Watson wrote: > I decided to try some example code from Subject. > > import numpy > import pylab > # Build a vector of 1 normal deviates with variance 0.5^2 and mean 2 > mu, sigma = 2, 0.5 > v = numpy.random.normal(mu,sigma,1) > # Plot a normalized hi

[Numpy-discussion] NumPy Histogram for Tentative NumPy Tutorial Questions

2009-11-26 Thread Wayne Watson
I decided to try some example code from Subject. import numpy import pylab # Build a vector of 1 normal deviates with variance 0.5^2 and mean 2 mu, sigma = 2, 0.5 v = numpy.random.normal(mu,sigma,1) # Plot a normalized histogram with 50 bins pylab.hist(v, bins=50, normed=1) # matplot