TColor initialization

From: Yasuhiro SHIRASAKI (joke@awa.tohoku.ac.jp)
Date: Wed Nov 11 1998 - 12:40:36 MET


Hi ROOTers,

Why TColor initialization is placed in TApplication?
Following batch mode application generates plain paper,
when TApplication is commented out.

As it is not GUI application, I think there is no need
to make TApplication instance.

------------------------------------------------------------
#include "TROOT.h"
#include "TApplication.h"
#include "TCanvas.h"
#include "TF1.h"
#include "TMath.h"

int main(int argc, char** argv)
{
    TROOT Root("Root", "RootApp");
//    TApplication theApp("App", &argc, argv);

    TCanvas c("test", "test"); c.Draw();
    TF1 f("sin", "sin(x)", -TMath::Pi(), TMath::Pi()); f.Draw();
    c.Print();

    return 0;
}
------------------------------------------------------------

regards,

--
Yasuhiro SHIRASAKI : Experimental Particle Physics, JLC Team
Graduate school of Science, TOHOKU University 980-8578 Japan.
Phone: +81-22-217-6727 Fax: +81-22-217-6728



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