So I have a simple histogram with an x axis that goes from 0-100 but when I try to rebin the plot it comes out blank. I am not sure what I am doing wrong and also I get the following error .
warning: null passed to a callee that requires a non-null argument [-Wnonnull] l->Draw();
I have my macro attached so anyone can see what I did. When I have my histogram set from like 0-10 in my array it can easily rebin it but once I increase the values it no longer works. Any help would be appreciated.
You cannot have bins with zero length (low[2] = low[3] = 60).
You also improperly calculate low[0] (e.g., low[0] > low[1]).
In order to prevent the “null passed” error, try with: if (l) l->Draw();