Re: Error bars

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Sun, 28 Jan 2007 09:18:16 +0100


Monika Sharma wrote:
>
> Hi Rooters,
>
> I have been using the demo example given in Chapter 4 (Graphs), page 53,
> in User's guide. This program draws markers with different colours taking
> input from graph, i.e.,
>
> Double_t *nx = gr3->GetX();
> Double_t *ny = gr3->GetY();
>
> I wanted to ask is there any way with which it can take errors
> too........
> Something like :
>
> Double_t *nex = gr4->GetEX();
> where gr4 is TGraphErrors and EX is the error on x
> Is it possible?

YES. In the example replace TGraph by TGraphErrors and define your errors in x and/or y

Rene Brun
>
> Thanks
> Monika
Received on Sun Jan 28 2007 - 09:18:18 CET

This archive was generated by hypermail 2.2.0 : Mon Jan 29 2007 - 05:50:00 CET