<div dir="ltr">As commented in the OP, this would be very useful for Matplotlib.<div><br></div><div>Tom</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Mar 9, 2018 at 1:42 PM Kirit Thadaka <<a href="mailto:kirit.thadaka@gmail.com">kirit.thadaka@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi!<div><br></div><div>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.</div><div><br></div><div><a href="https://github.com/numpy/numpy/pull/10591#issuecomment-371863472" target="_blank">https://github.com/numpy/numpy/pull/10591#issuecomment-371863472</a><br></div><div><br></div><div>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.</div><div><br></div><div>Please let me know if you have any suggestions on how to improve this PR.</div><div><br></div><div>Thanks!</div><div><br></div><div>-</div><div>Kirit</div></div>
_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@python.org" target="_blank">NumPy-Discussion@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/numpy-discussion" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/numpy-discussion</a><br>
</blockquote></div>