Hi,
I got following error with “SetMaxDigits”:
h->GetYaxis()->SetMaxDigits(2);
error: no member named 'SetMaxDigits' in 'TAxis'
Any suggestion? I am using root 6.10/02.
Thanks.
Hi,
I got following error with “SetMaxDigits”:
h->GetYaxis()->SetMaxDigits(2);
error: no member named 'SetMaxDigits' in 'TAxis'
Any suggestion? I am using root 6.10/02.
Thanks.
You’re probably looking for the static function TGaxis::SetMaxDigits()
, see https://root.cern.ch/doc/master/classTGaxis.html#a6b93d66237560f7b11701402a1a446ce
Cheers, Axel.
as an addition to Axels answer:
With root 6.12.04 there is in fact a new method:
h->GetYaxis()->SetMaxDigits(2);
to set the value individually (see release notes)
Otto
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.