in our group we built a c++ application for our analysis including the ROOT libraries.
I say this because I’m not using plain ROOT.
I have a problem when I try to save a Canvas on a file. I use tCanvas->SaveAs(). If I specify a “GIF” file, everything works well; but with other format (I tried PS, EPS, root, PNG) I get on the picture only the content of one bin!
I attached two file: the gif represents the Canvas perfectly, the eps shows only the content of the second bin.
Which ROOT version are you using ?
I know you are not using interactive ROOT, but can you send a piece of code (or better a macro) reproducing the problem ?
It’s difficult to post a macro or a piece of code, the application uses many c++ custom classes.
I tried to debug the application but it took to me too much time.
At the end I create a new plotting function and now it works fine, the .eps file looks exactly like the .gif file.
I didn’t understand where was the bug; thus, I’m sorry, this can’t be useful to other people. Sorry.