Scientific notation in y axis

Hi,

I want to draw multiple graphs with different order of magnitude and with common X axis. Normally, the data is from an ascii file.
In the example here enclosed, I have generate the graphs and put in comments the file read.

I would like to have scientific notations X.XX 10^X in Y axis.

When I use:
TGaxis::SetMaxDigits(3);

It does not work.

Any idea?

Juan
test.C (7.62 KB)

The scientific notation is there but hidden because your pad are glued together. I moved interactively the bottom pad and x10^12 showed. I guess you have such long labels because that’s the number of digits needed to differentiate the labels. With less digits you would get several labels exactly the same.

Thanks for your answer.

Yes, the 10^12 is hidden but to show it I have to move all the labels and it will superimpose to the labels of previous graph.
The ideal way will be to have X.XX 10^12 format for each label. Somme body knows a way to do it?

you have such long labels because that’s the number of digits needed to differentiate the labels.

Ok, I see I. I have to find a way to see the little variations in a big number.

Juan

Yes…