I have compiled this code Example1.C (3.0 KB) without any error or warning. But when I am running the executable file with a rootfile input, the histogram gram is being printed upside down like this
Your program cannot be run because of many include files missing. Looking at it there is no obvious reason why the output is upside down. I see you do Print(0 without any file name. So you are generating a PS file ? can you post it ?
My program ran well. While I am printing it without any file name, its generating a ps file, which I can not upload here because .ps files can not be uploaded here. But when i am printing it with a name like MT.png, it printed correctly.
Assuming that it’s “Okular (Document Viewer)”, open (display) your “.ps” file and then try to click “main menu” -> “View” -> “Orientation” -> “Original Orientation”.