Dear ROOTers,
some of you could please explain me why TPDF behaves differently from TPostScript? For example using the following macro, but using TPostScript, I correctly obtain 2 pages (the first one with h1 and h2 and the second one with h3 and h4), whereas using TPDF I get 3 pages: the first one empty, the second one with h1 and h2 and the third one with only h4!
TCanvas *myc = new TCanvas(“myc”,"",1);
myc->Divide(1,2);
TPDF *pdf = new TPDF(“prova.pdf”,111);
pdf->NewPage();
myc->cd(1);
h1->Draw("");
myc->cd(2);
h2->Draw("");
myc->Update();
pdf->NewPage();
myc->cd(1);
h3->Draw("");
myc->cd(2);
h4->Draw("");
myc->Update();
pdf->Close();
even if I try to produce a PDF file containing a single histo to avoid to have an empty initial page it seems that I have to use the “same” option:
TPDF *pdf = new TPDF(“prova.pdf”,111);
h1->Draw(“same”);
pdf->Close();
what is going wrong?
many thanks!
Pierpaolo