Recent change to TStyle

From: Tobias Raufer <T.Raufer1_at_physics.ox.ac.uk>
Date: Wed, 21 Mar 2007 15:58:22 -0000


Dear ROOTers,  

We are using ROOT version 5.15/04 under scientific linux, built from cvs head on March 20.

There seems to be a change in the way style settings are dealt with in ROOT. We use a rootlogon.C macro executed at logon time to make sure that the plots we create in ROOT follow some stylistic conventions. Here is an excerpt from this rootlogon macro:

{
TStyle* minosStyle = new TStyle("minosStyle", "MINOS Style");

//set the background color to white

minosStyle->SetFillColor(10);
minosStyle->SetFrameFillColor(10);
minosStyle->SetCanvasColor(10);
minosStyle->SetPadColor(10);
minosStyle->SetTitleFillColor(0);
minosStyle->SetStatColor(10);

//don't put a colored frame around the plots

minosStyle->SetFrameBorderMode(0);
minosStyle->SetCanvasBorderMode(0);
minosStyle->SetPadBorderMode(0);


//use the primary color palette
minosStyle->SetPalette(1,0); <---

minosStyle->cd();
gROOT->ForceStyle();
gStyle->ls();
}

It seems the "SetPalette" command does not work the same way it did in the past. In fact, after the ROOT session starts, the default palette is used for "colz" plots. If the command is executed interactively however, the palette is changed to the desired one.

Does this have something to do with recent changes to the TStyle and TColor classes? Or is there some other mechanism which overrides the setting from the rootlogon macro?

Thank you very much for your help.

        Tobi

---
Tobias Raufer
Denys Wilkinson Building
Keble Road, Oxford OX1 3RH, UK

Tel. +44 (0)1865 273409
Fax. +44 (0)1865 273418
tobias.raufer_at_physics.ox.ac.uk
Received on Wed Mar 21 2007 - 16:58:33 CET

This archive was generated by hypermail 2.2.0 : Thu Mar 22 2007 - 11:50:01 CET