From f2a8392c3aac6147fdaa94dedcae580f48e345ee Mon Sep 17 00:00:00 2001 From: Vratislav Chudoba Date: Thu, 4 Oct 2018 11:18:46 +0300 Subject: [PATCH] First picture almost finished. Cyrillic not working for the moment --- macros/izvRAN/figSpectraIZV.cxx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/macros/izvRAN/figSpectraIZV.cxx b/macros/izvRAN/figSpectraIZV.cxx index 1e26649..9a34a30 100755 --- a/macros/izvRAN/figSpectraIZV.cxx +++ b/macros/izvRAN/figSpectraIZV.cxx @@ -3,6 +3,7 @@ #include "TFile.h" #include "TCanvas.h" #include "TH1F.h" +#include "TText.h" #endif @@ -51,6 +52,9 @@ void figSpectraIZV() c1->SetWindowSize(1333, 787); c1->Divide(2, 2, .001, .001); + TText *t1[4]; + TString panel[4] = {"a)", "b)", "c)", "d)"}; + for (Int_t i = 0; i < 4; i++) { c1->cd(i+1); @@ -69,8 +73,22 @@ void figSpectraIZV() hExp[i]->Draw("E same"); if (i==0) hSim[i]->GetYaxis()->SetRangeUser(0,13000); + +// t1[i] = new TText(0.61,10829.39,"d)"); + t1[i] = new TText(0.18,0.87,panel[i].Data()); + t1[i]->SetNDC(); + t1[i]->SetTextFont(132); + t1[i]->SetTextSize(0.07); + t1[i]->Draw(); +// t1[i]->DrawTextNDC(.5, .5, "ajdas"); } +// TText *t1 = new TText(0.61,10829.39,"d)"); +//// t1->SetTextColor(kRed); +// t1->SetTextFont(132); +// t1->SetTextSize(0.07); +// t1->Draw(); + // c1->SaveAs("figures/spectra.eps"); } -- 2.18.1