save as .png in batch mode

From: Bo LIU <>
Date: Wed, 23 Mar 2005 01:12:02 +0000


In my hello.C file, I use:

c1 = new TCanvas("c1","vdtitle",200,50,700,500); ....

I can get this "mydata.png" if starting up ROOT. But if I try to use the batch mode:

$ root -b -q hello.C

I can run this file, but could't get this .png file.

So how can I get this .png file in the batch mode without starting up ROOT interface?


Bo LIU Received on Wed Mar 23 2005 - 02:12:08 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:06 MET