Only integer number on x label

Hello, I’m doing this plot…given that collisions are integer number, is there a way to force only integer numbers on x axis?
Thank yuou

urto.cpp (2.3 KB)


Please read tips for efficient and successful posting and posting code

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided


can you post the data file needed by your macro ?

Hello @couet
here the data file
data.txt (142 Bytes)

   gamma->GetXaxis()->SetNdivisions(8);

Thank you @couet it works!

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