I have a macro which produced a TCanvas with a plot. When I compile it and execute the binary the canvas is no longer shown, although I can do c.SaveAs("canvas.gif") and I obtain a correct plot. But I don't understand why the canvas is not shown just like when macro is executed. It is probably something trivial, but I cannot figure it out. Thanks for your help in advance!
Mariusz
OK problem understood. You did not mention the important difference between your script and the compiled code. In your compiled code you implement your own main program without instantiating a TApplication object that is required when doing graphics on the screen. Instead of doing that you better use ACLIC to compile your script.
Anyhow, I have made the necessary changes in your file such that it works also with your main program.