scikit-hep / histbook

Versatile, high-performance histogram toolkit for Numpy.
BSD 3-Clause "New" or "Revised" License
109 stars 9 forks source link

Variable bin width histograms #54

Open gadatsch opened 5 years ago

gadatsch commented 5 years ago

It would be great if one could create variable bin width histograms through specifying a sequence that defines the bin edges similar to numpy.histogram.

jpivarski commented 5 years ago

As a word of warning: I'm discontinuing work on histbook because they're are quite a lot of histogramming packages in Python, such as Boost Histogram and Physt.

However, what you're asking about is a "split" axis, as opposed to "bin". I'm not sure if the translation to ROOT recognizes that case. I'm pretty sure that split axes can be plotted in Vega, though.

In histogramming, my current project (stagg) is to develop a universal translator among all the histogram libraries, to handle this interpretation problem in a more general way.