[ROOT] Changing canvas division and saving to postscript

From: Ruben Shahoian (Ruben.Shahoyan@cern.ch)
Date: Mon Oct 20 2003 - 22:41:29 MEST


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