ROOT Version: 5.10
Platform: Slc6
Compiler:
Hi,
I have tried to follow the instructions here:
Hello,
I’d like to compare several histograms to a reference histogram and I started doing this using TRatioPlot (which I find a great update in the latest ROOT versions).
I see that the TRatioPlot only supports two histograms in the constructor:
TRatioPlot (TH1 *h1, TH1 *h2, Option_t *option="pois")
so I tried to define a TRatioPlot for each histogram I want to compare to the reference but, as far as I understand, I can’t Draw more than one TRatioPlot on the same Canvas, e.g. (I am using py…
but it seems to me that given that the method GetLowerRefGraph() requires the TRatioPlot ratio2 to be drawn first. And If ratio2 is drawn then the whole Canvas gets messed up and the ratio2 is not drawn (h2 is however properly plotted on the upper pad). The macro I am using can be found here (*)
Thanks for your help
(*) —
/afs/cern.ch/work/s/selvaggi/public/tratio2.py
couet
August 17, 2018, 7:38am
2
May be you need a gPad->Update() before retrieving the lower pad.
Try to draw these two ratio plots in two separate canvases (then extract what you need).
system
Closed
August 31, 2018, 8:04am
4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.