Scientific Notation for TGraph

ROOT Version: 6.12/06
Platform: Not Provided
Compiler: Not Provided

At the top of the y axis on a tgraph you usually have a 10^n added.

My axis scale is insisting on using y axis labels like 10,20,30 etc with 10^n at the top. How can I change the labels so they use 0.1,0.2,0.3 etc with 10^n+1 at the top?

I have a bunch of tgraphs on the same canvas that all have consistent axis labelling so I can just have on 10^n on my plots, except one graph is refusing to use the same scale.

I have already tried a few things like defining a separate TGaxis and GetYaxis()->SetMaxDigits but nothing is working.

Try to useTGaxis::SetMaxDigits();

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.