TColor initialization

Yasuhiro SHIRASAKI (joke@awa.tohoku.ac.jp)
Wed, 11 Nov 1998 20:40:36 +0900


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