Hi.
Thank you for your suggestions. This partly worked. Now there is some drawing happening, but the result is a blank space. Any further suggestion?
Thank you
EDIT: I realized my answer is exactly the same as @dastudillo 's, that is drawing the canvas after the histogram. Yet in your latest post that is not shown. Did you try it in the end?
One other thing to try would be histo.DrawClone instead of Draw
Hi. Thank you for following up.
Unfortunately I did not find a solution. The suggested things did not change the situation. I tried all the combinations of Draw and DrawClone and exchanging the order of Canvas and Histo. Still getting only blank space.
Cheers
Luca
For me it worked as I mentioned, so if it doesn’t for you, maybe the issue is not in ROOT. By the way, your code tries to read a file with extension .mca but the data file is .txt; are you reading the correct file (and location)?