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?


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
at the beginning of your session (or rootlogon.C file).


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


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: