Re: How to draw canvas on files only?
Rene Brun (Rene.Brun@cern.ch)
Thu, 08 Jul 1999 13:25:39 +0000
Giovanni Organtini wrote:
>
> Hi,
> I would like to know if it is possible (and if yes, how) to draw canvases
> on files only without displaying them on the screen. Thank you.
>
Hi Giovanni,
Suppose you have a file c1.root containing a TCanvas object named "c1",
do
root -b
Root > TFile f("c1.root")
Root > c1.Draw("file.ps")
Note that you must Root in batch mode (-b).
Rene Brun