Changing the defaults Text attributes

Hi, I am trying to add some text to the canvas using the GUI,

Presently, I have to set the above attributes for each text string. I am wondering if there is a way to put these as the new ‘defaults’ ?

Thanks a lot

Create a file called rootlogon.C in the same folder where you will open ROOT, containing an unnamed function with the settings you want for gStyle, e.g.:

{
  gStyle->SetTextFont(52);
  gStyle->SetTextSize(0.07);
}
1 Like