Re: [Matplotlib-users] A request for a Matplotlib extension to hist

2015-04-24 Thread Antonino Ingargiola
Hi, I think there is a good reason to add the functionality to plot pre-computed histograms to hist() or to a new function with similar API. Sometimes histograms are heavy or we don't want to recompute them to perform a series of plots. In this case, I miss the ability to easily set the plot sty

Re: [Matplotlib-users] A request for a Matplotlib extension to hist

2015-04-24 Thread Jerzy Karczmarczuk
Le 24/04/2015 12:58, Christian Alis responds to the problem posed by Virgil Stokes > I had the same problem some time ago and what I did is to use bar() to > plot the histogram, which can be done in one line: > > hst, bin_edges = np.histogram(data) > plt.bar(bin_edges[:-1], hst) > > Perhaps this

Re: [Matplotlib-users] A request for a Matplotlib extension to hist

2015-04-24 Thread Virgil Stokes
On 24-Apr-2015 12:58, Christian Alis wrote: > I had the same problem some time ago and what I did is to use bar() to > plot the histogram, which can be done in one line: > > hist, bin_edges = np.histogram(data) > plt.bar(bin_edges[:-1], hist) Very elegant Christian :-) > > Perhaps this trick can be

Re: [Matplotlib-users] A request for a Matplotlib extension to hist

2015-04-24 Thread Christian Alis
I had the same problem some time ago and what I did is to use bar() to plot the histogram, which can be done in one line: hist, bin_edges = np.histogram(data) plt.bar(bin_edges[:-1], hist) Perhaps this trick can be added in the documentation? I am willing to code Virgil's request if many will fi

[Matplotlib-users] A request for a Matplotlib extension to hist

2015-04-24 Thread Virgil Stokes
I have some Python (2.7.9) code that processes some rather large data sets to determine the curvatures along 2D curves. One feature of these data that I like to look at is the distribution of the curvatures. I use NumPy to to determine histograms for each set, and save the histogram parameters r