-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hplot: adding a generic binned graph type? #755
Comments
Putting back the discussion from #756 here
I think the practical difference if not that large: the only real one is the ability of stacking different From a conceptual point of view, one has discrete values as At the end, I am not sure what's the best between:
I hope that's clearer ! |
I am not 100% sure the introduction of Ideally, one would need to have the entire plot machinery working in the same way for either Does that make sense? |
right. |
It is relatively usual to compute bin-by-bin quantities from various histograms, and the result is not always an histogram, i.e. (weighted) events counts. The most typical example is a bin-by-bin ratio of histograms, but there are more (bin-by-bin composition, bin-by-bin significance, etc ...).
The most natural option - I think - would be to write a new generic plotter, let's say
BinnedGraph
, to deal with binned information. This would mainly be a copy paste ofhplot.H1D
except that theHist
field would be replaced by another type (and I think all the plotting aspects are similar):Such a new type could have arbitrary
Values
andErrors
and would allow store any operation between several histograms, via syntax like:The text was updated successfully, but these errors were encountered: