Re: NTuple drawing options?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon May 12 1997 - 10:35:35 MEST


Maarten Bruinsma wrote:
> 
> Dear ROOT,
> 
> I found that the 1D drawing options such as "B" etc. are not applicable
> for NTuples. Is this correct?
> 

Option "B" (Bar option) is also applicable to ntuples/trees.
However, while looking at the problem, I see that the bar width
and offset are taken from the current style and not from the ntuple
object.
So, to activate this option you must do:
  Root > gStyle->SetBarWidth(0.5); // or any other value <1
  Root > ntuple->Draw("x","","B")

To change the bar fill area color, do before ntuple->Draw
  Root > ntuple->SetFillColor(2); // this will set bar color to red

I will modify the code to take the barwidth and offset from
the current ntuple instead of teh current style.

Rene Brun



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:18 MET