Re: [ROOT] Saving different plots in a single ps file.

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Nov 08 2002 - 22:42:58 MET


Hi Bernard,

This problem had already been fixed. Use the PRO version 3.03/09

Rene Brun

On Fri, 8 Nov 2002 andrieu@lpnhep.in2p3.fr wrote:

> Hi,
> 
> I'm trying to write several canvases to the same PostScript file using similar 
> instructions as in the following example from Root documentation:
> 
>    Writing several canvases to the same Postscript file
>    ----------------------------------------------------
>  if the Postscript file name finishes with "(", the file is not closed
>  if the Postscript file name finishes with ")" and the file has been opened
>     with "(", the file is closed. Example:
>  {
>     TCanvas c1("c1");
>     h1.Draw();
>     c1.Print("c1.ps("); //write canvas and keep the ps file open
>     h2.Draw();
>     c1.Print("c1.ps"); canvas is added to "c1.ps"
>     h3.Draw();
>     c1.Print("c1.ps)"); canvas is added to "c1.ps" and ps file is closed
>  }
> 
> Unfortunately, the last plot doesn't appear on the ps file.
> 
> I'm using root 3.03/07 compiled with KCC on Linux machine with Redhat 7.2.
> 
> Cheers,
>   Bernard Andrieu
> 
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:17 MET