I am ploting two histograms from a root file.
The TCanvas and TAxis that is plotted by deafault is the following
I think it would be better if instead of 2000x10^3, 4000x10^3, 6000x10^3 it would be better to have 2 x 10^6 etc.
Is there a way to make the numbers appear in TAxis the way that I want?
Is it also possible to make the numbering a bit more dense? 1, 2, 3, 4, 5, 6 instead of 2, 4, 6
Thank you very much in advance!
Try the static function
Thank you very much for your help.
but I get
[quote]Error: Can’t call TAxis::SetMaxDigits(6) in current scope XS_ENDF_exp.C:18:
Possible candidates are…
Error: non class,struct,union object GetXaxis() used with . or -> XS_ENDF_exp.C:18:[/quote]
Execute it exactly as it’s written:
TGaxis::SetMaxDigits(1); // try 1, 2, 3, …
Thank you very much!
It seems that it’s working!!!