Accessing title border of histogram

Dear Root Talk,

I am trying to access the histogram title in order to remove the border (by setting the color to white) in a macro. When the histogram is drawn I can do this by calling title->SetLineColor(kWhite), but this naturally doesn’t work scripted.

Is there a better way of removing the border?


In your script you can do

gPad->Update(); //to force the generation of the title TPaveText *title = (TPaveText*)gPad->GetPrimitive("title"); title->SetBorderSize(0);


Thank you :slight_smile: