[ROOT] Postscript postitioning

From: Suzanne Panacek (spanacek@fnal.gov)
Date: Thu Dec 14 2000 - 16:37:18 MET


Hi Rooters,
When using the TPostScript class, and specifying portrait mode (111), the
canvas is placed at the bottom of the page. Is there a way to bring it to
the top?

Below is the example macro,
Suzanne Panacek

{
   TFile *f1 = new TFile("hsimple.root");
   TCanvas *c1 = new TCanvas("c1");
   TPostScript *ps = new TPostScript("file.ps",111);
   c1->Divide(2,1);
// picture 1
   ps->NewPage();
   c1->cd(1);
   hpx->Draw();
   c1->cd(2);
   hprof->Draw();
   c1->Update();
// picture 2
   ps->NewPage();
   c1->cd(1);
   hpxpy->Draw();
   c1->cd(2);
   ntuple->Draw("px");
   c1->Update();
   ps->Close();
// invoke PostScript  viewer
   gSystem->Exec("gs file.ps");
}



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:39 MET