[ROOT] corrupted file with multiple pages

From: Miroslav Helbich (helbich@mail.desy.de)
Date: Fri Sep 06 2002 - 17:41:18 MEST


Dear Rooters,

  this macro produces a corrupted ps file. What am I doing wrong?


 I am using root version 3.03/05  on Suse Linux,

                                                Miro Helbich

{
//demonstrate a problem with many pictures per ps file

TCanvas* canvas = new TCanvas("canvas");

TH1F* histo = new TH1F("histo","test 1",10,0.,10.);
histo->Fill(2.);
histo->Draw();

canvas->Print("plots.ps(","ps");

histo->Fill(4.);
histo->Draw();

histo->SetTitle("test 2");
canvas->Print("plots.ps","ps");

histo->Fill(6.);
histo->Draw();

histo->SetTitle("test 3");
canvas->Print("plots.ps","ps");

histo->Fill(8.);
histo->Draw();

histo->SetTitle("test 4");
canvas->Print("plots.ps)","ps");

}



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:08 MET