when I write in my macro:
TCanvas *c1 = new TCanvas(“c1”,“MyCanvas”,0,0,500,500);
histogram->Draw(); // 1D histogram filled with some data
and run this with
root -q -b mymacro.C
the resulting gif file has size more than 100 kB
when I draw the histogram interactively and (using the mouse) save it as gif, I’m left with a gif file of just 5 kB!!!
Looking at resulting gif files, I can’t see any difference in quality.
How to force ROOT to make a reasonably small gif file using TCanvas::SaveAs?
Thanks for help