TRatioPlot with TLatex

Hi everyone,

I tried the TRatioPlot tutorial here.
https://root.cern.ch/doc/v608/ratioplot1_8C.html

It works great, but it is not obvious to me how this interacts with TLatex.
Besides the following two lines, what else is needed to add the “ATLAS” label to the UpperPad?

TLatex latex;
latex.DrawLatex(0.55, 0.78, “ATLAS”);

Thanks,
JianCong

TPad *p = rp->GetUpperPad(); if (p) p->cd();
TLatex latex; latex.DrawLatexNDC(0.55, 0.78, "ATLAS");
c1->cd(0); c1->Modified(); c1->Update();

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.