I have two histograms h1 and h2 that I’m plotting using sames.
I’d like to move the stats boxes on the canvas, and from the TPaveStats class reference it seems I should use SetX(Y)1NDC. However this sends my macro into seg fault, telling me: warning: null passed to a callee that requires a non-null argument.
It’s written directly afterwards, I just didn’t read it. You have to do gPad->Update() after drawing the histograms to make sure the stats boxes are drawn.
Now if only I could understand the coordinate system used…
Ok these coordinates give me something I like. Last question, why do I have to click on the canvas once it’s drawn to make the change of position of the stats boxes take effect?