problems creating gifs in a macro

Judith Katzy (katzy@nanalpc.phy.uic.edu)
Thu, 1 Jul 1999 17:53:02 +0000 ( )


hi rooters,

I tried to save histograms as .gifs. If I run the following macro,
the test.gif file is created, but empty:

{
TCanvas canvas("test","test",10,10,600,700);
TH1F hh("histogram","histogram",100,0.,99.);
hh.Draw();
canvas.SaveAs("test.gif");
}

if I execute 'canvas.SaveAs("test.gif");' directly from the cint command
line it does work without problems.

I'm working with root version 2.21/08 on RedHat Linux 5.2 .

thanks for help,
Judith