Plots not saving


I wrote a code for plotting histogram named test_plot.C (1.02 KB) and I am calling this using another file CompareAdvanced.C (3.39 KB) But the output is not saving.

I think there is a problem with the Canvas that I defined for making the ratio plots at bottom of plot. But, the code CompareAdvanced.C is working well interactively. Please suggest what I am doing wrong.

Thanks for your help.

In “test_plot.C” you create an EMPTY “c1” canvas which you then save.
In “CompareAdvanced.C” you create ANOTHER “Canvas1” canvas which you do NOT save.