Re: [ROOT] How to use canvas without graphic output?

From: Stilianos Kesisoglou (kesisogl@fnal.gov)
Date: Wed Apr 02 2003 - 20:49:16 MEST


Hi Marek,

    In the beginning of your code include the line:
    
    gROOT->SetBatch(kTRUE);

    This command disables the graphics system,
but your code will run fine.

Stelios.

----- Original Message ----- 
From: "Marek Wieczorek" <cage@student.uci.agh.edu.pl>
To: <roottalk@pcroot.cern.ch>
Sent: Wednesday, April 02, 2003 12:33 PM
Subject: [ROOT] How to use canvas without graphic output?


> Hi,
> 
> I wrote a program (compiled, not interpreted) which generates graphic
> files (gifs), using the TCanvas class.
> 
> ...
> canvas = new TCanvas();
> (...)
> canvas->cd();
> (...)
> canvas->Print(gif_path);
> ...
> 
> I have troubles in running my program in text mode, because every time I
> try to execute it, it has to have access to graphic output.
> Is there any solution to make my program executable from the text-only
> terminal?
> 
> best regards
> Marek
> 



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:10 MET