Forcing axis to use exponents

Hello All,

I am making some plots and have the annoying feature of having a y axis which real 22000 instead of 22 with a 10^3 at the top of the plot.

This should be done by default as I understand it ( and it did until I built the code into a c++ executable ). Without going through the tedious hassle to making a TGaxis, is there a way to force the behavior I want?




For example:


Wonderful!!! Thanks so much.