I am trying to change the font in histo axes. Is this possible in root?
I tried h1->SetAxisColor(kWhite);
but the former changes only the axis’ color.
Any ideas for this?
Thank you in advance!
I am trying to change the font in histo axes. Is this possible in root?
I tried h1->SetAxisColor(kWhite);
but the former changes only the axis’ color.
Any ideas for this?
Thank you in advance!
[quote=“atha.stam”]I am trying to change the font in histo axes. Is this possible in root?
I tried h1->SetAxisColor(kWhite);
but the former changes only the axis’ color.
Any ideas for this?
Thank you in advance![/quote]
You can do:
hist->GetXaxis()->SetLabelColor(kRed)
hist->GetXaxis()->SetLabelFont(…
hist->GetXaxis()->SetLabelSize(…
etc. - have a look at TAxis to check, which setters are available.
Thank you very much!!!
hist->GetXaxis()->SetLabelColor(kRed)
is working!!!
Thank’s!
When you do not know which setting to use, enter the editor from the canvas (View/Editor), modify the picture interactively and then save the result as a .C file. Look in the .C file which commands have been done to do the mod you want.