Re: Plotting a histogram from text file.

From: Rene Brun <brun_at_pcroot.cern.ch>
Date: Wed, 30 Mar 2005 08:24:17 +0200 (MEST)


I assume that you want to show a scatter-plot of one ntuple/Tree column versus another column.
If TTree* T is a pointer to your Tree, do

   T->Draw("energy:nentries");

I strongly suggest to read the ROOT Users Guide chapter about Trees and play with the tutorials
  hsimple.C, ntuple.C, tree3.C

Rene Brun

On
Tue, 29 Mar 2005, Saleem, Muhammad wrote:

>
> Hi
>
> I want to plot a histogram from the file which has No. of enteries in one column and bin size in the other column.
>
> Some one can point me out that how do i plot the histogram.
>
> Is there any script for this?
>
> cheers
>
> ---saleem
>
Received on Wed Mar 30 2005 - 08:24:26 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:06 MET