TRatioPlot title

Dear experts,
when I draw “TRatioPlot”, on the top pad it print the hist title. Here (1) you can see that the title is print a 2d times by TRatioPlot on the top pad. How can I disable the title that TRatioPlot set?
Regards

(1)
image

Can you provide a macro reproducing this effect ?

Dear Couet,

  • you can find the files here (1).
  • when I run “root distorsion.cc” all is ok.
  • but when I run “root -b -l distorsion.cc” I have the hist title draw 2 times.
  • can you reproduce this strange behaviour. Do you see what is wrong?
    Regards

(1)
http://calpas.web.cern.ch/calpas/distorsion.cc
http://calpas.web.cern.ch/calpas/file.root
http://calpas.web.cern.ch/calpas/rootstyle.cc

(2)
image

(3)
image

   templates      [temp][0][eta][pt] -> GetXaxis() -> SetRangeUser(0., 0.3);
   auto hh = (TH1D*)templates      [temp][0][eta][pt] -> DrawClone();
   hh->SetTitle("");

Dear Couet,
it helped, thank you for your help.
Regards

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