Re: [ROOT] some style settings of v3.05/07

From: Satoru KAMEOKA (kameoka@lambda.phys.tohoku.ac.jp)
Date: Wed Sep 03 2003 - 10:11:39 MEST


Hi Rene,

From: Rene Brun <brun@pcbrun.cern.ch>
Subject: Re: [ROOT] some style settings of v3.05/07
Date: Wed, 3 Sep 2003 08:41:32 +0200 (MEST)
Message-ID: <Pine.LNX.4.44.0309030841070.2912-100000@pcbrun.cern.ch>

> Satoru,
> 
> In version 3.04 you cannot set these parameters via TStyle.
> 
That sounds strange.
I got the histogram attributes I hope by attached rootlogon.C on
v3.04/02.
Histogram title font	       ==> times-bold-r-normal
Histogram title PaveText color ==> white	

   Best regards,
   Satoru Kameoka	  	  	   


> Rene Brun
> 
> On Tue, 2 Sep 
> 2003, Satoru KAMEOKA wrote:
> 
> > Hi Rene,
> > 
> > thank you for reply.
> > So, some commands are changed in v3.05/07?
> > What is the command to set the font of histogram title and color of
> > the title PaveText?
> > These two attributes cannot be set by my rootlogon.C used for v3.04/02.
> > 
> >       Best regards,
> >       Satoru Kameoka
> >       
> > 
> > From: Rene Brun <Rene.Brun@cern.ch>
> > Subject: Re: [ROOT] some style settings of v3.05/07
> > Date: Tue, 02 Sep 2003 08:50:14 +0200
> > Message-ID: <3F543DA6.FBD24390@cern.ch>
> > 
> > > Hi Satoru,
> > > 
> > > see TStyle::SetTitleFontSize and SetTitleTextColor.
> > > The functions SetTitleFont,SetTitleColor refer to the axis titles.
> > > 
> > > Rene Brun
> > > 
> > > Satoru KAMEOKA wrote:
> > > > 
> > > > Dear ROOTers,
> > > > 
> > > > I tried v3.05/07 yesterday, and found following title font and title
> > > > color setting do not work.
> > > > 
> > > > gStyle->SetTitleFont(22);
> > > > gStyle->SetTitleColor(0);
> > > > 
> > > > The default setting seems always used.
> > > > Is this an expected behavior?
> > > > 
> > > >    Best regards,
> > > >    S.Kameoka
> > > >
> > > 
> > 
> 


{
gStyle->SetPaperSize(20, 26);  // A4 size(default)

gStyle->SetFillStyle(4000);

// --- Canvas Setting ---
gStyle->SetCanvasColor(0);
gStyle->SetCanvasBorderMode(0);
gStyle->SetCanvasDefH(500);
gStyle->SetCanvasDefW(620);
gStyle->SetCanvasDefX(3);
gStyle->SetCanvasDefY(3);
//gStyle->SetBarOffset(0.5);  // default = 0.5;
//gStyle->SetBarWidth(0.5);  // default = 0.5;

// --- Frame Setting ---
gStyle->SetFrameBorderMode(0);
gStyle->SetFrameFillStyle(0);
gStyle->SetFrameFillColor(0);

// --- Pad Setting ---
gStyle->SetPadBorderMode(0);
//  gStyle->SetPadColor(0);
//  gStyle->SetPadTopMargin(0.1);
//  gStyle->SetPadBottomMargin(0.1);
gStyle->SetPadLeftMargin(0.12);
gStyle->SetPadRightMargin(0.08);

//gStyle->SetOptFit();
gStyle->SetOptStat(111111);
gStyle->SetOptDate(1); 
gStyle->GetAttDate()->SetTextFont(12);
//gStyle->GetAttDate()->SetTextSize(0.025);
//gStyle->GetAttDate()->SetTextAngle(0);
//gStyle->GetAttDate()->SetTextAlign(11);
gStyle->GetAttDate()->SetTextColor(2);
//gStyle->SetOptFile(0);

// --- Label Setting ---
gStyle->SetLabelFont(42,"xyz");

// --- Title Setting ---
gStyle->SetTitleTextColor(1);
gStyle->SetTitleFont(22);
//gStyle->SetTitleBorderSize(0);
gStyle->SetTitleColor(0);
//gStyle->SetTitleSize(0.1, "x");
//gStyle->SetTitleStyle(0000); //1001
//  gStyle->SetTitleX(0.1);
//  gStyle->SetTitleY(0.99);
//  gStyle->SetTitleH(0.07);
//gStyle->SetTitleW(0.15);

// --- Statistics Setting ---
gStyle->SetStatTextColor(1);
gStyle->SetStatBorderSize(1);
gStyle->SetStatColor(0);
gStyle->SetStatFont(52);
gStyle->SetStatX(0.92);
gStyle->SetStatY(0.90);
//  gStyle->SetStatW(0.2);
//  gStyle->SetStatH(0.15);
gStyle->SetStatStyle(0);

//gStyle->SetLabelColor(0);
//gStyle->SetTitleOffset(5.2,"x");
gStyle->SetTitleOffset(1.2,"y");

// --- Histogram Setting ---
//gStyle->SetHistFillColor(Color_t color = 1);
//gStyle->SetHistFillStyle(Style_t styl = 0);
//gStyle->SetHistLineColor(Color_t color = 1);
//gStyle->SetHistLineStyle(Style_t styl = 0);
//gStyle->SetHistLineWidth(2);

// --- Function Setting ---
gStyle->SetFuncColor(4);
gStyle->SetFuncWidth(3);

// --- text Setting ---
gStyle->SetTextFont(22);
gStyle->SetTextSize(0.06);

gStyle->SetGridColor(1);

gROOT->ForceStyle();
//gSystem->Load("libHbook");
}



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:15 MET