Re: How to draw canvas on files only?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Jul 08 1999 - 15:25:39 MEST


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



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:35 MET