Re: [Matplotlib-users] Binning data, deleting an histogram from plot

2010-11-17 Thread Roban Hultman Kramer
There is numpy.histogram, which will give you the histogram without the plots. But I have had little trouble using hist on log-log plots: Try this (in ipython -pylab or with ">>> from pylab import *; import numpy"): >>> x = numpy.random.lognormal(size=1e4) >>> bins = logspace(-1.5, 1.5, 100) >>>

[Matplotlib-users] Binning data, deleting an histogram from plot

2010-11-17 Thread Davide Fiocco
Hi folks, I want to bin sevaral arrays of data and superimpose them in a single plot. The simplest approach is to fire several times > hist(data_i, N) My problem is that I want to make a loglog plot (i.e. putting a logscale on the X axis too, something that hist doesn't allow me to do). So what