Hi Judith, Just before canvas.SaveAs add the following line canvas.Update(); This should in principle be done automatically by SaveAs. I will add the feature. Rene Brun On Thu, 1 Jul 1999, Judith Katzy wrote: > > > 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 >
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:35 MET