I am trying to plot a weighted histogram from an NTuple in which I would like the binning to be in log-scale. I explain myself:
In my ntuple, I have two quantities X and Y. To plot a histogram of X weighted by Y I do: ntuple->Draw("X>>htemp(1000)","Y");
This provides a histogram of X weighted by Y but each bin has the same size in linear scale.
However, I would like to be able to transform this histogram with bin of the same size in log scale.
Is there an option for that and how should I proceed. I know I can do it with a macro but I am looking for a simple option.
Best and thanks in advance for your help.
I tried the following, hopping my 1000 bins sizes would be distributed in a log scale (log of the bin range similar in the whole histogram) but I had no success. ntuple->Draw("X>>htemp(1000)","Y","kLogx");