This was asked before, but I didn’t find a clear answer: Is it possible to modify the font of a histogram title non-interactively?
I tried to set
but the title still is drawn with the standard font (the axis and stats title is not).
Also I didn’t manage to catch the title Pave with some
because apparently it’s drawn later, at program ending or so, I don’t know.
Is it possible or not?
Thanks a lot, Stefan
see “Graphical Containers: Canvas and Pad” in UserGuide (p. 101)
TH1F *h1 = new TH1F("h1","histo title",10,0,10);
TPaveText *pt = (TPaveText*)(gPad->GetPrimitive("title"));
Note that when you modify a Pad interactively, you can save the result as a “.C” macro (from the “File” menu). Then, looking at this script, you can see how to to same same in a non interactive way. This is a good way to learn how to change the various ROOT settings.