Re: PostScript
Rene Brun (Rene.Brun@cern.ch)
Fri, 13 Nov 1998 08:14:00 +0100
Jeff Patterson wrote:
>
> Hey Rooters,
>
> Here is an easy question. I want to make a PostScript file
> (inside of a macro) of a canvas I have drawn on. I know you can do it
> with the mouse, but I would like to automate the process with C++ code.
> Lets say I have an instance of a TCanvas with a pointer c1. It is
> composed of pads, and each pad contains a histogram. How do I save the
> whole this as a .ps
>
Read the HOWTO at URL:
http://root.cern.ch/root/HowtoPS.html
To print a canvas, simply do:
c1->Print("c1.ps");
Rene Brun