char *method = "Long" TH2D *R =(TH2D*) _file0->Get("Ratio") gStyle->SetPalette(kRainBow) gStyle->SetPaintTextFormat("1.4f") gStyle->SetOptStat(0) TCanvas *C = new TCanvas("c_Long", "c_Long", 10,10,1000,600) C->cd() C->SetBottomMargin(0.15) C->SetRightMargin(0.11) C->SetLeftMargin(0.1) TLatex *tex = new TLatex() tex->SetNDC(True) tex->SetTextFont(132) tex->SetTextSize(0.06) tex->SetTextAlign(33) TLatex *method_tex = new TLatex() method_tex->SetNDC(True) method_tex->SetTextFont(132) method_tex->SetTextSize(0.06) method_tex->SetTextAlign(13) R->Draw("AXIS") C->SetLogx() R->SetContour(100) R->Draw("COLZTEXTE") tex->DrawLatex(200000, 5.15, "LHCb preliminary") method_tex->DrawLatex(6000, 5.15, "Long efficiency ratio") C->SaveAs("/home/renata/Documents/LHCb/Dizertacka/figures/TrackEff/PossibleCorrectResults/2018_25ns/Data2018_25ns_MC2018_25nsSim09h_WG/Ratio_Long_P-ETA_pretty.eps","eps")