Commit f2a8392c authored by Vratislav Chudoba's avatar Vratislav Chudoba

First picture almost finished. Cyrillic not working for the moment

parent 42e0b95a
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
#include "TFile.h" #include "TFile.h"
#include "TCanvas.h" #include "TCanvas.h"
#include "TH1F.h" #include "TH1F.h"
#include "TText.h"
#endif #endif
...@@ -51,6 +52,9 @@ void figSpectraIZV() ...@@ -51,6 +52,9 @@ void figSpectraIZV()
c1->SetWindowSize(1333, 787); c1->SetWindowSize(1333, 787);
c1->Divide(2, 2, .001, .001); c1->Divide(2, 2, .001, .001);
TText *t1[4];
TString panel[4] = {"a)", "b)", "c)", "d)"};
for (Int_t i = 0; i < 4; i++) { for (Int_t i = 0; i < 4; i++) {
c1->cd(i+1); c1->cd(i+1);
...@@ -69,8 +73,22 @@ void figSpectraIZV() ...@@ -69,8 +73,22 @@ void figSpectraIZV()
hExp[i]->Draw("E same"); hExp[i]->Draw("E same");
if (i==0) hSim[i]->GetYaxis()->SetRangeUser(0,13000); 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"); // c1->SaveAs("figures/spectra.eps");
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment