Fill color

In my macro I set the style with a function: I set the pad, the canvas and the frame color as white, but the legends and the statistics box keep grey. How can I change their color?

Daniel

To come with an explanation, we would need more info from your side.
However, if you are not familiar with the attributes management, I suggest to call
gROOT->SetStyle(“Plain”);
at the beginning of your session (or rootlogon.C file).

Rene

I have a function “TStyle * getStyle()” where I set for example

        theStyle->SetPadColor(kWhite);
        theStyle->SetCanvasColor(kWhite);

and so on.

Then in another function I load a canvas and I fit a histogram. The result is that the background is white, while the Statistics Box is grey. The same thing happens to a TLegend when I draw a TMultigraph with a legend. So I wonder if there is a simple way to change the colours of these objects.

To get white stats and title background do:

gStyle->SetStatStyle(0);
gStyle->SetTitleFillColor(0);