How to move exponent when draw axis?

Hello, I’m trying to draw an axis by using TGaxis. I want to make the exponent and the label at the same side. But SetExponentOffset() doesn’t work. I wander how to implement it in ROOT?
test.C (412 Bytes)

Hello @quzn; I am sure @couet can help with that.


what you did seems ok. I need to check

I see, this feature (SetExponentOffset) works only for the histograms’ axis, not for standalone TGAxis. This should be clarified in the doc.

Thanks! By the way, is there another method to move the exponent?

With TGaxis it is always automatic.

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