Re: get content of TGraphErrors

From: Arafat Gabareen Mokhtar <mokhtar_at_slac.stanford.edu>
Date: Wed, 6 Oct 2010 14:25:10 -0700


Hi Dimitri,
You need to loop over the n-points and fill the arrays x[n] and y[n] using: graph->GetPoint(Int_t i, Double_t& x, Double_t& y) Arafat

On 10/06/2010 02:16 PM, Dimitri Bourilkov wrote:
> Hi all,
>
> After successfully creating a graph from an ASCII file with n rows,
> e.g.
>
> mygraph = new TGraphErrors("my.dat","%lg %lg %lg","");
>
> how can I get the n points in 2 arrays x[n] and y[n]?
>
> Thanks, Dimitri
>
>
Received on Wed Oct 06 2010 - 23:25:17 CEST

This archive was generated by hypermail 2.2.0 : Thu Oct 07 2010 - 17:50:01 CEST