hist without plotting

Peter Otten __peter__ at web.de
Mon Feb 16 02:56:14 EST 2009


Nick Matzke wrote:

> Is there a way to run the numpy hist function or something similar and
> get the outputs (bins, bar heights) without actually producing the plot
> on the screen?
> 
> (R has a plot = false option, something like this is what I'm looking
> for...)

First hit googling for numpy hist led me to

http://www.scipy.org/Tentative_NumPy_Tutorial#head-aa75ec76530ff51a2e98071adb7224a4b793519e

So pylab.hist() plots and numpy.histogram() just calculates.

Peter



More information about the Python-list mailing list