According to Ramble on programming tips for the particle physicist,
TGAxis *axis = (TGAxis*) histogram->GetYaxis(); axis->SetMaxDigits(3);
Activities mentions in this site have been supported by the following grants: