How to change MaxDigits in graph or hist?

Hello,

TGaxis has a member function

static void SetMaxDigits(Int_t maxd = 5)

designed to change number of digits before the 10^N appears.

But how can access this function when I drew a graph or histogram? There is no way to get a pointer to TGaxis only TAxis which doesn’t have this function.

With respect,
Anton

SetMaxDigits is a static function, ie calling it
will have effect on all subsequent draws.
To call it
TGaxis::SetMaxDigits(4);

Rene