Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?Q?J=c3=b6rg_Buchholz?= Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Obtain data points of a line from gnuplot Date: Mon, 15 Feb 2016 20:00:45 +0100 Organization: A noiseless patient Spider Lines: 33 Message-ID: References: <65879cc4-a1af-4e93-9850-a2d045a8ee89@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Date: Mon, 15 Feb 2016 18:57:49 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="3da0684523673ec3c79b36a6a0d77440"; logging-data="30436"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/gQl/pA0So8+uds27ClrERou6JkPPINy0=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 In-Reply-To: <65879cc4-a1af-4e93-9850-a2d045a8ee89@googlegroups.com> Cancel-Lock: sha1:B3Y84j0nXqNEa0MnB6ApBoHyO0Y= Xref: csiph.com comp.graphics.apps.gnuplot:3236 On 15.02.2016 18:10, jamie.unix@gmail.com wrote: > Hi all, > > I have been stumped with this for quite a while now. I remember that I = could do this with gnuplot, but have been struggling to find the correct = documentation. > > Consider I have a data file with a few x and y coordinates, lets say > > 0 0 > 10 10 > 20 20 > 30 30 > > and if I call gnuplot to plot this file as follows: > > plot 'input.txt' using 1:2 with l ls 1 > > The generated graph is a straight line with a certain slope. Is it poss= ible to obtain the coordinates of the line as shown in gnuplot's output, = with a certain resolution? > > For example, the expected result would be something like > > 0 0 > 1 1 > 2 2 > 3 3 ... and so forth. plot 'input.txt' u ($1/10):($2/10) w l ls 1 J=F6rg