How to get a polyline from a TGraph?

From: Nico De Simone <nicola.desimone_at_roma2.infn.it>
Date: Fri, 16 Feb 2007 12:23:22 +0100


Dear Rooters,
my problem is to get a polyline function made from linear interpolation of many (x,y) points, that is starting from two arrays Double_t x[] and Double_t y[].

I'm able to do it writing my how function and using TF1("myfnc", myfcn, xmin, xmax, npar) but I cannot use it as a class member.

Using a TGraph Draw("APL") I see the polyline, gROOT->GetListOfFuncion()->Print() shows a lot of functions but I don't know I to use them.

I will be grateful if you could suggest me a proper way to do it.

Cheers,
Nico Received on Fri Feb 16 2007 - 12:22:51 CET

This archive was generated by hypermail 2.2.0 : Fri Feb 16 2007 - 17:50:01 CET