I am using GnuPlot 3.5. It will be sometime before I could switch over too
the recent release.
I want to know if there is a way to fit a curve to the given data points
in Gnuplot. By default, the data points are just connected by straghit
line segments.
I went through gnuplot online help and read through 'set cntrparam'
documentation. What I could understand is that cubic and bspline fitting
is possible for contour plots. I just want to to know if curve fitting is
possible for X-Y plots too.
Thanks in advance.
Vivek...
> I went through gnuplot online help and read through 'set cntrparam'
> documentation. What I could understand is that cubic and bspline fitting
> is possible for contour plots. I just want to to know if curve fitting is
> possible for X-Y plots too.
Out-of-the-box gnuplot 3.5 does not have any curve-fitting capabilities.
There is the "gnufit" patch which adds it to 3.5 -- I suspect there's
still a copy of that floating around somewhere. But of course you'd have
to recompine gnuplot anyway to install it -- and if you can do that, you'd
be much better off simply to get 3.7. 3.7 will give you "fit" (a slightly
modified version of "gnufit"), smoothing (splines and Bezier curves), and
a lot of other new and improved goodies.
Sorry, but my only suggestion is to bite the bullet and get 3.7 :-)
Dick Crawford, aka rccra...@lanl.gov
Ps. In case you've lost the info ...
The latest official release of gnuplot is:
Version: 3.7, Patchlevel 0
Date: Thu Jan 14 19:34:53 BST 1999
The source distribution ("gnuplot-3.7.tar.gz" or a similar name) is
available from the official distribution site and its mirrors
ftp://ftp.dartmouth.edu/pub/gnuplot/
ftp://mirror.aarnet.edu.au/pub/gnuplot/
ftp://ftp.irisa.fr/pub/gnuplot/
ftp://ftp.ucc.ie/pub/gnuplot/
ftp://ftp.gnuplot.vt.edu/pub/gnuplot/
http://members.theglobe.com/gnuplot/
http://www.geocities.com/SiliconValley/Foothills/6647/
http://mirror.aarnet.edu.au/pub/gnuplot/
The Macintosh version will be available (hopefully) from
http://users.ece.gatech.edu/~schooley/
Source and binary distributions for the Amiga are available on
Aminet <URL:http://ftp.wustl.edu/~aminet/> and its mirrors.
Most of these sites also have the documentation available separately,
in case you don't want to get the source at the same time.