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

From: Matt Palmer (palmer@hep.phy.cam.ac.uk)
Date: Mon Mar 29 2004 - 18:49:02 MEST


Hi,
You could write yourself a small shared library that uses static 
initialization to call the appropriate gStyle methods.  Then you just 
have to remember to link to it.  The only problem with this is that 
there is a reasonably high chance of falling foul of the static 
initialization fiasco which ROOT is rather susceptible to.  See: 
http://www.parashift.com/c++-faq-lite/ctors.html#faq-10.11 and related 
FAQs.   I am unaware of whether there is any way to use the "Construct 
on First Use" idiom to make sure ROOT is properly initialised before you 
try and change the styles etc.

Matt


Stilianos Kesisoglou wrote:
> Hi Andy,
> 
> 	You can always make your plots using the standard ROOT background
> And then edit the ps file. Replace any sequence "0.95 0.95 0.95" with "1.00
> 1.00 1.00"
> (that removes the gray background color). Also replace any sequence "0.665
> 0.665 0.665"
> with "1.00 1.00 1.00" (that removes the dark gray border).
> 
> 	It's a crazy solution but it works! :-)
> 
> Stelios
> 
> -----Original Message-----
> From: owner-roottalk@pcroot.cern.ch [mailto:owner-roottalk@pcroot.cern.ch]
> On Behalf Of Olivier Couet
> Sent: Monday, March 29, 2004 8:58 AM
> To: Andy Buckley
> Cc: roottalk@pcroot.cern.ch
> Subject: Re: [ROOT] Grey/white background in default histograms
> 
> 
> 
> 
> 
> 
>>1) *Why* is the background grey since I've yet to meet anyone who 
>>likes it that way? :-)
> 
> 
> Oh, well .. a matter of taste of the main authors I guess (Rene and 
> Fons) ... I have no answer to that. 
> (I do not like that default either :-( )
>  
> 
>>2) Is there a way to change the defaults without resorting to explicit 
>>manipulations of gStyle? Hence the thought about an entry in .rootrc.
> 
> 
> I do not know an other way.
> 
>  Cheers,    Olivier
> 



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