esheldon / esutil

A variety of python utilities focusing on numerical, scientific, and astrophysical computing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reverse indices returned by histogram2d do not respect xmin, xmax, ymin, and ymax keywords

GoogleCodeExporter opened this issue · comments

Hello,

It seems reverse indices returned by histogram2d are returned with respect to 
the entire x and y arrays supplied to histogram2d, even when xmin, xmax, ymin, 
and ymax are used. I would expect histogram2d to return indices only for 
elements in ranges specified by xmin, xmax, ymin, and ymax keywords.

Is this a bug?

Cheers,

Brani

Original issue reported on code.google.com by bse...@gmail.com on 4 Jun 2011 at 11:06

Sorry I missed this before, my issue tracking wasn't set up properly.

You are correct, the reverse indices are incorrect.  Is this something you are 
willing to work on and submit a patch?

Original comment by erin.sheldon@gmail.com on 15 Jan 2012 at 7:56

I think I have fixed this now in trunk (sorry for the very long delay).  Note 
the returned data are somewhat changed from before but make more senses now I 
think.

Original comment by erin.sheldon@gmail.com on 24 Sep 2014 at 6:56

Original comment by erin.sheldon@gmail.com on 24 Sep 2014 at 6:57

  • Changed state: Fixed
Thanks, Erin :)

B

Original comment by bse...@gmail.com on 24 Sep 2014 at 6:58