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