Closed audatic-henning closed 3 years ago
I should add I'm using numpy arrays of int16s, seems even with the fix there is thus an issue with overflow/underflow
@audatic-henning Should be fixed in v3.7.2 . Can you please verify.
Solved it for me, thanks a lot for the quick solution!
Negative values in histogram sometimes seem to lead to negative bin indices that can underflow (and shouldnt be there in the first place).
I believe the fix is in plotille/_util in hist() around line 85 to change the computation of x_idx to
(the
max
is new). Alas I don't have time to thoroughly test and/or create a PR right now, maybe someone else can pick it up