Default colors

Hello,

I’m sick of the default grey colour in every displayed object. I am wondering if there is a way to put white as default once and for all for each object I’ll create.
I tried to put some SetFillColor here and there but there is always something that shows up with the ugly grey background…

Can anyone tell me how to do this? I am ready to recompile root if necessary.

Just read the first pages of the users guide and you will not be sick anymore.

gROOT->SetStyle("Plain");
Rene

Thanks a lot!

johan

Dear Rene,

It seems that TPaveText is not obedient to

The following piece of code and the attached plot demonstrate:

[code]{
gROOT->SetStyle(“Plain”);

TH1D *h = new TH1D(“h”,“h”,1,0,1);
h->SetBinContent(1,1);
h->SetBinError(1,0.1);

TPaveText *text = new TPaveText(0.05,0.77,0.95,0.90,“NDC”);
text->AddText(“Some text”);

TCanvas *c = new TCanvas(“c”,“c”);
c->Divide(2,1);
c->cd(1)->SetPad(0.0,0.0,0.75,1.0);
h->Draw();
c->cd(2)->SetPad(0.75,0.0,1.0,1.0);
text->Draw();
}[/code]

Cheers,
Ante

P.S. ROOT 5.26/00b (tags/v5-26-00b@32327, Mar 28 2010, 16:02:56 on linuxx8664gcc)


text->SetFillStyle(0);
or
text->SetFillColor(0);

Dear Oliver,

I am aware of your suggestions, but I really hoped that

would remove the default grayness once and forever from all the objects (TPaveText included) so that no additional intervention in the code is required.

Anyway, thanks for your reply!

Cheers,
Ante

It is in our plans to make a new “clean” style.