Dear Zentara and all others, I tried all the options from GD modules and in my case its not working. I think my case is a bit different, what I need to do is to develop a web interface which accpets some *foo.dat* file and plot the results after some n calculations on to a graph with an already identified trendsline (my trend is line is not dynamic - it is already defined nd it is linear too) - i just want plot the result based on every *foo.dat* the user submits.
So , now am doing it in a weird way am developing a static Image::Magick giff image with my trendline and initial data points and I am planning to write a CGI to plot the result of foo.dat to it... Zenetra - since am working on a web interface - i think Tk wont help me :( If any one could suggest an alternate/other way - I would be happy to try it out ! Happy PERL to all, S K On 12/26/05, zentara <[EMAIL PROTECTED]> wrote: > > On Sun, 25 Dec 2005 16:21:10 +0530, [EMAIL PROTECTED] (S Khadar) wrote: > > >Dear all, > > > >I am using GD::Graph for developing an online graph - What I need is a > >(GD::Graphpoints) - Graph - I have already done this and works fine, Now > I > >want to draw a line (best fit straight line / trends line (linear) ) > through > >maximum number of points in this graph and I want to > >circle them also . So just tell me, is there any way to draw best fit > >straight line through the maximum nuber of points on a GD::Graph image. > > > > > >Eagerly waiting for your reply, > >Thanking you in anticipation, > > What about GD::Graph::lines and > GD::Graph::linespoints ?? > > It would seem that you will need to do your own least-square-fit > calculations, then import them into the apropriate GD graph module. > See: > http://perlmonks.org?node_id=455534 > > > Personally, I would do this on a Tk Canvas, since you can mix points, > and lines freely. With GD, there may be problems with combining the > various specialty modules, but you may be lucky. > > > > -- > I'm not really a human, but I play one on earth. > http://zentara.net/japh.html > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > > s khadar