Re: [ROOT] gstyle and ntuple

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Nov 23 2000 - 12:19:15 MET


Hi Sabine,

Histograms automatically generated by TTree::Draw have their attributes
inherited from the Tree attributes. The Tree attributes are the ones
set in the current TStyle at the time of creation of the Tree.
Currently there is no way to force an existing Tree to use the current style.
I will add this feature.

Rene Brun



Sabine Crepe-Renaudin wrote:
> 
>                 Hello,
> 
>         It seems that such commands does not apply for ntuples :
> 
> gStyle->SetHistFillStyle(1001);
> gStyle->SetHistFillColor(38);
> gStyle->SetHistLineColor(9);
> gROOT->ForceStyle();
> 
> If I plot an histo after these, the fill style and colors corresponds to
> what I have asked but if I plot a variable from a tree it's not the case
> (even if it's called like an histo htemp).
> 
> Is it a bug or is there other commands specific for trees or I made
> something wrong ? How can I do to define the characteristics of both my
> histos and plots from Tree variables only once, for all my future root
> sessions in my rootlogon.c for instance ?
> 
>                 Thanks in advance,
> 
>                                 Sabine.



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:37 MET