|
From: Hans-Bernhard B. <HBB...@t-...> - 2010-07-31 10:10:49
|
On 30.07.2010 10:27, wrote Amir Sabbagh: > i need a 2D plot for the circular fit, something like the "desired > plot" attached. I think I am messing with the fitting function. Since > I have a 2D set of points, i would like to have a 2D plot for the fit. So g(x,y) is not the function you actually want to plot. You want to plot the implicit curve defined by g(x,y)==0. Your best bet for that would be parametric mode, plotting a circle with the properties found by fit: set parametric set trange [0:2*pi] plot 'data.txt', xa+R*cos(t), ya+R*sin(t) title "fit" > Another point: I have tryied to pass the value of the variable "R" to > the label with no success. Is it possible? Yes. See "help set label", particularly its mention of sprintf. |