Hi!
When I use font precision 3 (to give absolute font sizes), the title (of TH1Fs etc.) does no longer show up.
Here’s a quick example:
// -------- SET FONT --------
int font = 43; // arial, precision 3
gStyle->SetTextFont(font);
gStyle->SetTitleFont(font, "");
gStyle->SetTitleFont(font, "x");
gStyle->SetTitleFont(font, "y");
gStyle->SetTitleFont(font, "z");
gStyle->SetLabelFont(font, "");
gStyle->SetLabelFont(font, "x");
gStyle->SetLabelFont(font, "y");
gStyle->SetLabelFont(font, "z");
gStyle->SetStatFont(font);
gStyle->SetLegendFont(font);
// -------- SET SIZE --------
int size_px = 13;
gStyle->SetTextSize(size_px);
gStyle->SetTitleSize(size_px, "");
gStyle->SetTitleSize(size_px, "x");
gStyle->SetTitleSize(size_px, "y");
gStyle->SetTitleSize(size_px, "z");
gStyle->SetLabelSize(size_px, "");
gStyle->SetLabelSize(size_px, "x");
gStyle->SetLabelSize(size_px, "y");
gStyle->SetLabelSize(size_px, "z");
gStyle->SetStatFontSize(size_px);
gStyle->SetLegendTextSize(size_px);
gStyle->SetTitleFontSize(size_px);
// -------- DRAW SOMETHING --------
auto h = new TH1F("h","test",100,-3,3);
h->FillRandom("gaus",3000);
h->Draw();
Am I doing something wrong?
Any help or just confirming that this is strange/ also happens with other ROOT versions would be much appreciated
Best regards,
Kilian
_ROOT Version: _ 6.06/08
Platform: Linux version 4.13.0-45-generic 16.04.1-Ubuntu
Compiler: Not Provided