hist without really ploting

Dear list,
How can I use hist without plotting?

e.g.

h=hist(Z)

and then to only use the output of “h” without wasting time on plotting?

Thanks,

Tsviki Hirsh

Use numpy.histogram -- that's what mpl uses.

JDH

···

On Mon, Nov 16, 2009 at 7:32 AM, Tsviki Hirsh <tsviki.hirsh@...287...> wrote:

Dear list,
How can I use hist without plotting?
e.g.
h=hist(Z)
and then to only use the output of "h" without wasting time on plotting?

Hi,

you may want to use numpy's histogram:

import numpy as np
np.histogram(Z)

Kind regards
Matthias

···

On Monday 16 November 2009 14:32:03 Tsviki Hirsh wrote:

Dear list,
How can I use hist without plotting?
e.g.
h=hist(Z)

and then to only use the output of "h" without wasting time on plotting?

Thanks,
Tsviki Hirsh