Re: [ROOT] Grey/white background in default histograms

From: Andy Buckley (
Date: Mon Mar 29 2004 - 16:14:09 MEST

On Mon, 2004-03-29 at 14:03, Olivier Couet wrote:
> Hi Andy,
>  You can change these values thanks to gStyle:
>    gStyle->SetCanvasColor(0);
>    gStyle->SetStatBorderSize(1)

Yes, I realise that! The question was, in two parts:

1) *Why* is the background grey since I've yet to meet anyone who likes
it that way? :-)

2) Is there a way to change the defaults without resorting to explicit
manipulations of gStyle? Hence the thought about an entry in .rootrc.

A major reason for question 2 is that I predominantly use ROOT classes
in compiled C++ rather than interpreted via CINT (in order to get proper
STL behaviour, compile-time type checking, etc). Having to include
gStyle method calls in all my compiled code is rather annoying and
inflexible and as it's not run through CINT there's no rootlogon.C in
which to lump all the "make the defaults what I want them to be"

Has anyone got an answer to (1) or any suggestions for (2)?


Andy Buckley, HEP Group, Cavendish Lab, Cambridge

This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:07 MET