Re: drawing ntuples

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Nov 10 1999 - 18:59:09 MET


Hi Selim,
Sorry for this late reply. I fixed the problem immediatly in 2.23/09
and forgot to answer your mail.
Thanks for having reported the problem.


Rene Brun

Selim Issever wrote:
> 
> Hi all,
> 
> I have a little problem with drawing ntuples/trees. In my case I plot a rate
> versus time (rate:time) and dont want to have markers, but lines drawn in
> between. So i use the proposed approach:
> 
>   aNT->SetEstimate(aNT->GetEntries());
>   aNT->Draw("rate:time", "", "goff,same");
>   Int_t    selR = aNT->GetSelectedRows();
>   Float_t *xArr = aNT->GetV2();
>   Float_t *yArr = aNT->GetV1();
> 
>   TGraph *g  = new TGraph(selR, xArr, yArr);
>   g->Draw("l");
> 
> this works fine, except when I have entires outside the histogram region
> (which I assume to be from 3 to 7 in the example below):
> 
> the '.'s represent the real data, which are not drawn. the rest is, what I get
> as a plot.
> 
> 9        ........
> 8       .
> 7      /\
> 6     /    \
> 5    /        \
> 4   /            \------
> 3 -/
> 2
> 1
>                  ^-- here is a sudden drop of the rate
> 
> what I'd like to have is something like this:
> 
> 9        ........
> 8       .
> 7      /         |
> 6     /          |
> 5    /           |
> 4   /            |------
> 3 -/
> 2
> 1
> 
> the first plot somehow mock data,... If you are not an expert and know what
> kind of data you are expecting, this could quite foul you,.. Is there a way to
> make the plots the way I'd like to have them? resizing the plotting area isnt
> a solution (esp when using log plots and having the trouble at the lower end).
> 
> Thanks a lot for your help and time in advance!
> Best Wishes,
> Selim
> 
> --
> Selim Issever | Tel: 040 8998-2843    +- "Da packst Du ja schon wieder
> DESY-F15      | Fax: 040 8998-4033    +- Information rein." Diplomand
> Notkestr. 85  | selim.issever@desy.de +- zum Verbesserungsvorschlag --
> 22603 Hamburg/Germany   |  http://www.physik.uni-dortmund.de/~issevers



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