Hello, I’ve to set only integer values on the x-axis of a multi-graph becaues of the number of targets is an integer.
Following an example of @couet, I wrote
mg->GetXaxis()->SetNdivisions(8);
but the plot shows values as for example 2.5, 3.5 etc
emitarnum.cpp (2.4 KB)
Emittance_numb_target_C.txt (59 Bytes)
Emittance_numb_target_Be.txt (63 Bytes)
Thank you
Please read tips for efficient and successful posting and posting code
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided

