Re: [ROOT] Postscript postitioning

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Dec 15 2000 - 15:01:18 MET


Hi Suzanne,
The picture is by default positionned at the bottom left part of the page.
I will add an option to position it at the top left.
The only thing that you can do now is to edit the ps file and edit the line
following the line
%%EndProlog

Rene Brun

Suzanne Panacek wrote:
> 
> 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