How to use different axis to plot


I just contact ROOT soon.

I want to use the left axis as the X axis and the bottom axis as the Y axis to plot.

I refer to the relevant procedures, such as TBox, TGaxis class, but failed to find some examples.
I need some help. Maybe a suitable method, or an example.

Thanks a lot~

This is a bit vague it all depend what kind of object you are using. For instance for a TGraph you just need to invert the X and Y vectors at the TGraph creation time.