Several statistics boxes for several histogram fits

Hey there,

I ploted two TH1’s into one canvas. I fit them with whatever function. I get out two fits. That’s ok so far. Now I want to see the results of both fits in two seperate statistics boxes in my canvas. But it just shows me one statistics box for either the first or the second histogram including the fit results for just one of those. What can I do?

Thanks,
Chris

If you have two TH1s (says h1 and h2) do

h1.Draw(); h2.Draw("sames");
or (TH1::Fit) draws by default

h1.Fit(myfunc1); h2.Fit(myfunc2,"',"sames");
then you can move the second stats box as indicated in the documentation
at root.cern.ch/root/htmldoc/THistP … :PaintStat

Rene