[Numpy-discussion] PR to add a function to calculate histogram edges without calculating the histogram
josef.pktd at gmail.com
josef.pktd at gmail.com
Mon Mar 12 22:58:09 EDT 2018
On Mon, Mar 12, 2018 at 7:08 PM, Eric Wieser
<wieser.eric+numpy at gmail.com> wrote:
> As likely one of the primary users, Tom - does the function name seem
> reasonable?
>
> Eric
>
>
> On Mon, Mar 12, 2018, 21:45 Thomas Caswell <tcaswell at gmail.com> wrote:
>>
>> As commented in the OP, this would be very useful for Matplotlib.
>>
>> Tom
>>
>> On Fri, Mar 9, 2018 at 1:42 PM Kirit Thadaka <kirit.thadaka at gmail.com>
>> wrote:
>>>
>>> Hi!
>>>
>>> I've created a PR to add a function called "histogram_bin_edges" which
>>> will allow a user to calculate the bins used by the histogram for some data
>>> without requiring the entire histogram to be calculated.
>>>
>>> https://github.com/numpy/numpy/pull/10591#issuecomment-371863472
>>>
>>> This function allows one set of bins to be computed, and reused across
>>> multiple histograms which gives more easily comparable results than using
>>> separate bins for each histogram.
Given that the bin selection are data driven, transferring them across
datasets might not be so useful.
(Aside I usually pick the bin_edges returned by the first histogram to
use for any follow-up histograms, or pick something on a common
range.)
>>>
>>> Please let me know if you have any suggestions on how to improve this PR.
>>>
>>> Thanks!
as a bystander: LGTM and I think it's a good idea
Josef
>>>
>>> -
>>> Kirit
>>> _______________________________________________
>>> NumPy-Discussion mailing list
>>> NumPy-Discussion at python.org
>>> https://mail.python.org/mailman/listinfo/numpy-discussion
>>
>> _______________________________________________
>> NumPy-Discussion mailing list
>> NumPy-Discussion at python.org
>> https://mail.python.org/mailman/listinfo/numpy-discussion
>
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at python.org
> https://mail.python.org/mailman/listinfo/numpy-discussion
>
More information about the NumPy-Discussion
mailing list