Re: [ROOT] Changing canvas division and saving to postscript

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Oct 21 2003 - 08:39:17 MEST


Hi Ruben,

I do not understand your question.
You only need to create a canvas once.
For each picture
 -clear the canvas
 -divide it
 -draw in each pad
 -canvas->Print("file.ps("); or file.ps or file.ps)

Rene Brun


Ruben Shahoian wrote:
> 
> Hello,
> I need to create a multipage postrscript file with different
> number of pads on each page. Is there any way to do this
> using only only canvas?
> I've tried somtehing lile
> cc = new TCanvas();
> ps = new TPostScript("tstp.ps");
> ps->NewPage();
> cc->Divide(n1,n2);
> ...
> // draw content of the page
> ps->NewPage();
> cc->Divide(n3,n3);
> ...
> // draw content of the page
> ps->Close()
> delete ps
> 
> But ps files shows only empty pages.
> Is there any trick or I am forced to create many canvas and use
> canvas1->Print("name.ps[")
> ...
> canvas2->Print("name.ps]")
> 
> Regards,
>         Ruben Shahoyan
> --



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET