Use real numbers instead of scientific notation


ROOT Version: 6.26/02
Platform: Windows
Compiler: MSVC 19.31.31104.0


Hi,

I would like to get rid of the scientific notation of the axis valus (10^(-1), 1, 10^2, 10^3). Is it possible to label 0.1, 0, 1, 10, 100 and so on instead?
Thanks in advance!

histo->GetYaxis()->SetNoExponent(1);

https://root.cern/doc/master/classTGaxis.html#a0b9ea761fb770450a219b1feb0197730

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.