Re: [matplotlib-devel] Histogram normalization and overflow bins

2015-03-10 Thread OceanWolf
Tom, ``When we drop numpy 1.5''? I thought we already had... I mean we only test numpy 1.6 on Travis... For the rebinning exercise, I don't have time to look, but I would expect a similar trick to imshow, quiver, etcetera when I want to compare to a baseline (e.g. for animation). Namely I

Re: [matplotlib-devel] Histogram normalization and overflow bins

2015-03-10 Thread Thomas Caswell
Right on no longer supporting 1.5, but this code never got updated. This is a bit of a bigger job than I first anticipated as numpy has deprecated the norm kwarg, so we probably should too. On Tue, Mar 10, 2015, 07:19 OceanWolf juichenieder-n...@yahoo.co.uk wrote: Tom, ``When we drop numpy

Re: [matplotlib-devel] Histogram normalization and overflow bins

2015-03-10 Thread OceanWolf
Yes, you have almost got what I want. I know of both line comments in the pull interface, and raising DeprecationWarnings. The problem with the warnings that they only want to get used when you have an alternate in place and want to remove old code soon. The problem here lies in not knowing

Re: [matplotlib-devel] Histogram normalization and overflow bins

2015-03-10 Thread Paul Hobson
You can comment on specific lines of code in the pull request interface, but that's not what I think you're describing. A better practice, IMO is to raise a DeprecationWarning when the soon-to-be-removed code is executed. Then you can just grep for those and get cracking. -p On Tue, Mar 10, 2015

Re: [matplotlib-devel] Histogram normalization and overflow bins

2015-03-07 Thread Thomas Caswell
Paul, Note that by zoom the op means they are changing the bins, not actual zooming(by just changing the x axis). I was going to say we deal with normalization by delegating to numpy, but we actually handle it internally (with a note that when we drop np 1.5 to make numpy do it). I think the

[matplotlib-devel] Histogram normalization and overflow bins

2015-03-07 Thread Tomo Lazovich
Hello matplotlib developers, I'm not sure if this is the right mailing list for this question, so please re-direct me if it is not. I am wondering whether it is possible to have a histogram in pyplot normalized to the total length of the list input, rather than just the bins showing on the plot

Re: [matplotlib-devel] Histogram normalization and overflow bins

2015-03-07 Thread Paul Hobson
IMO, this seems like a bug. I would expect bars to change height with zoom/limit levels.  -p — Sent from Mailbox On Sat, Mar 7, 2015 at 4:20 PM, Tomo Lazovich lazov...@gmail.com wrote: Hello matplotlib developers, I'm not sure if this is the right mailing list for this question, so please

Re: [matplotlib-devel] Histogram normalization and overflow bins

2015-03-07 Thread Tomo Lazovich
Sorry for the spam, but I just wanted to say that I now understand that I should be using plt.xlim to zoom in on the x-axis rather than changing the bins. When I zoom in with that, the bin height is indeed constant as expected. On Sat, Mar 7, 2015 at 8:00 PM, Tomo Lazovich lazov...@gmail.com

Re: [matplotlib-devel] Histogram normalization and overflow bins

2015-03-07 Thread Tomo Lazovich
Thanks for the suggestion...I will see how numpy handles this. Sorry for not being clearer earlier. Tom is right that by zooming I meant changing the bins so that they covered a smaller range. Is there a better way of zooming in on an axis so that I don't have this issue? Thanks! Tomo On Sat,