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
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:39 MET