I want to go from the first graph to the second graph.Can you help me?Thank you very much!
__
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided
@couet can you help here?
Change the value of TGaxis::SetMaxDigits();
For instance:
TGaxis::SetMaxDigits(1);
I’m sorry, I just saw it. Thank you. I tried it, but there was an error in the code. I want to use it this way in graph,
![]()
but it is not allowed. A friend on forum suggested I try running the following code on root6 that is g1->GetHistogram()->GetYaxis()->SetMaxDigits(1);
but I can’t use root6 in my current environment.
I use root 5.34,an old version.
Thank you very much!
For the older versions use the global setting:
TGaxis::SetMaxDigits(1);

