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
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)
Please read tips for efficient and successful posting and posting code
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided
Try experimenting yourself to understand it and find a value that works for what you want.
There is several ways to achieve this, but as you already set the number of divisions in your macro, the simplest is:
Thanks to the both @dastudillo and @couet
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.