Dear ROOT users,
may someone of you know a way to change the title position of different pads.
If i use
gStyle->SetTitleY(value)
it is set to all pads.
but I want to set different title positions to each pad.
thanks a lot in advance
Raphael
Dear ROOT users,
may someone of you know a way to change the title position of different pads.
If i use
gStyle->SetTitleY(value)
it is set to all pads.
but I want to set different title positions to each pad.
thanks a lot in advance
Raphael
gStyle is for global settings. try:
{
TH1F *h1= new TH1F("h1","histogram 1",100,-5,5);
h1->FillRandom("gaus",10000);
h1->Draw();
gPad->Update();
TPaveText* title = (TPaveText*)gPad->FindObject("title");
title->SetY1NDC(0.5);
title->SetY2NDC(0.6);
gPad->Modified();
gPad->Update();
}
Hello Couet,
Thanks for your help.
best regards
Raphael