Re: merge canvas prints to one file

Rene Brun (Rene.Brun@cern.ch)
Tue, 14 Oct 1997 13:56:36 +0200


Robert Loke wrote:
>
> Hi,
>
> is there a chance to merge the saved content of several canvases in one
> file?
>
> If there's only on canvas to be saved, it's easy using canvas.Print(...).
> But calling this twice (or even more often), the previous content becomes
> overwritten.
> Is there an option for appending the next plot to this file?

Assume a canvas c1, you can do:
TPostScript ps("file.ps",112);
c1.Paint();
ps.Newpage();
c1.Paint(); (at this point c1 has already been updated
ps.NewPage();
c1.Paint();
...
ps.Close();

Rene Brun