Dear experts,
I used (1) to set the position and the size of the hist title but the 2d line does not work. Indeed, when I change it, the hist title size does not change. I have root version 6.12, is that the right way to change the hist title size?
Regards
(1)
gStyle->SetOptTitle(1); // set hist title
gStyle->SetTitleSize(0.2, “t”);
gStyle->SetTitleX(0.4); //title X location
gStyle->SetTitleY(0.9); //title Y location
gStyle->SetTitleW(0.5); //title width
gStyle->SetTitleH(0.15); //title height
Dear Couet,
you can see the code and the root file here (1).
I also have a problem with “GetLowerRefGraph()” from TRatioPlot at line 107-108, indeed I have the error message at (2), but if I remove these line, it works fine. Do you see what is wrong?
Regards
Dear Couet,
I guess this is because some bins are empty. The binning is the same.
If I remove the ratio hist, the title hist does not reduce or increase at line 6?
I do not see what is wrong with GetLowerRefGraph(), as the line right above “SetGridlines” works fine?
Regards
Dear Couet,
I’m confused. If I run the code without “GetLowerRefGraph()”, it draw the ratio plots bellow the hist as expected see(1), so the drawing seems to wok fine with the Divided canvas. There is a problem when I’m calling “GetLowerRefGraph()”. For some reason it does not work? If there is a more general problem with TRatio, it should not work at all I guess. I tried in a canvas (no Divide() called and still the same issue).
Regards