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

From: Philippe Canal (pcanal@fnal.gov)
Date: Mon Mar 29 2004 - 19:00:47 MEST


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

At least to some, the grey is a 'softer' color on the screen.

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

You could implement your own rootlogon.C mechanism.
I.e. write a script 'mystart.C' which contains the setting you want
to be able to change and add to your executable
	gROOT->ProcessLine(".x mystart.C");

Also note that there are several default style which can be use by
simply doing something like:
      gROOT->SetStyle("Plain");
The available styles are Plain (Plain Style (no colors/fill areas), 
Bold, Video (Style for video presentation histograms) and 
Pub (Style for Publications)

Cheers,
Philippe.

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Andy Buckley
Sent: Monday, March 29, 2004 8:14 AM
To: roottalk@pcroot.cern.ch
Subject: Re: [ROOT] Grey/white background in default histograms


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"
methods.

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

Cheers,
Andy

-- 
Andy Buckley, HEP Group, Cavendish Lab, Cambridge
http://www.insectnation.org


#################################################################
#################################################################
#################################################################
#####
#####
#####
#################################################################
#################################################################
#################################################################



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