Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #2782
| Newsgroups | comp.graphics.apps.gnuplot |
|---|---|
| Date | 2015-02-22 22:27 -0800 |
| Message-ID | <68e9ed33-a7ef-4106-8730-151263df2011@googlegroups.com> (permalink) |
| Subject | Fit 3D Line to data |
| From | Erik Zweigle <erikzweigle@gmail.com> |
Hello, I am trying to fit a line to the 4 data points shown below. 377.4202, -345.5518, 2.1142 377.4201, -345.5505, 2.5078 377.4206, -345.556, 2.8359 377.4288, -345.5555, 3.2109 I only seem to be able to plot a plane with poor fitting. Documentation doesn't mention parametric equation of line for 3D and it didn't work anyway. Any pointers? set datafile separator "," set xlabel "X" set ylabel "Y" set zlabel "Z" #set xrange [377.0:377.6] #set yrange [-345.5:-346] #set zrange [1.0:4.0] f(x,y) = a*x + b*y + c set title 'best fit trial' fit f(x,y) 'data.csv' using 1:2:3 via a,b,c splot 'data.csv' u 1:2:3 w p lt 3 ps 2, f(x,y)
Back to comp.graphics.apps.gnuplot | Previous | Next — Next in thread | Find similar | Unroll thread
Fit 3D Line to data Erik Zweigle <erikzweigle@gmail.com> - 2015-02-22 22:27 -0800
Re: Fit 3D Line to data Karl <mail.kfr@gmx.net> - 2015-02-24 10:36 +0100
Re: Fit 3D Line to data Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2015-02-24 20:16 +0100
Re: Fit 3D Line to data Karl <mail.kfr@gmx.net> - 2015-02-25 14:34 +0100
Re: Fit 3D Line to data Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2015-02-25 19:25 +0100
Re: Fit 3D Line to data Axel Berger <Axel_Berger@B.Maus.De> - 2015-02-28 03:02 +0100
Re: Fit 3D Line to data Erik Zweigle <erikzweigle@gmail.com> - 2015-02-28 12:47 -0800
Re: Fit 3D Line to data Karl <mail.kfr@gmx.net> - 2015-03-01 06:46 +0100
Re: Fit 3D Line to data Gavin Buxton <gavinbuxton@gmail.com> - 2015-02-25 06:28 -0800
Re: Fit 3D Line to data Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2015-02-25 19:38 +0100
csiph-web