X-Received: by 10.99.64.194 with SMTP id n185mr8386804pga.53.1480260668051; Sun, 27 Nov 2016 07:31:08 -0800 (PST) X-Received: by 10.157.11.120 with SMTP id p53mr424232otd.19.1480260667985; Sun, 27 Nov 2016 07:31:07 -0800 (PST) Path: csiph.com!feeder.erje.net!2.us.feeder.erje.net!news.ripco.com!news.glorb.com!n6no1813952qtd.0!news-out.google.com!m27ni3252qtf.1!nntp.google.com!n6no1813941qtd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.graphics.apps.gnuplot Date: Sun, 27 Nov 2016 07:31:07 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=188.20.239.46; posting-account=8aAfcQoAAAAFyM529Tf50ab4Op9511Om NNTP-Posting-Host: 188.20.239.46 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4ad61db7-dd62-4b0f-8bb6-ffa3305505fb@googlegroups.com> Subject: linear fit of looped (and cutted) data set From: =?UTF-8?Q?Markus_Gr=C3=BCnwald?= Injection-Date: Sun, 27 Nov 2016 15:31:08 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: csiph.com comp.graphics.apps.gnuplot:3485 I've done measurements of cycling loads and saved into a text-file. Now i n= eed to make a linear fit to these data points by only take care of a specif= ic part of data points (limited y-range). - Hard to descirbe - therefore i = tried to make a sketch of it: see http://ovh.to/2u45XF4 If i'll do this by setting a set of range during fit-command by using: [code] f(x) =3D k*x + d fit [x_min:x_max] [y_min:y_max] f(x) "DATA.txt" using 2:3 via k,d [/code] i'll get a wrong fitting curve, because gnuplot seams to connect the dead e= nds of the cutted Data-set (seen in (1) of my sketch). I think i will need a function that fits the linear function best to existi= ng points ignoring the cutted dead ends (seen in (2) of my sketch). Does anyone know a solution to get this behaviour?