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

[Matplotlib-users] Wind barb bug

2015-04-24 Thread Jesper Larsen
Hi Matplotlib Users, When I make wind barbs with rounding enabled and custom barb increments I noticed that there were no wind barbs with half barbs above 2 full barbs. The reason seems to be a bug in the _find_tails method. The bug is illustrated by this small script (_find_tails is a copy of the

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

[Matplotlib-users] Re: animation.FuncAnimation example --- how does it work?

2015-04-24 Thread Virgil Stokes
On 23-Apr-2015 20:09, Jerzy Karczmarczuk wrote: Animation problem of Virgil Stokes. Since I began the answer sequence, here's a little more. If this overlaps other answers, I apologize. About the third parameter "/frames/ can be a generator, an iterable, or a number of frames." This makes v