Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: TonyG Newsgroups: comp.graphics.apps.gnuplot Subject: Re: How to display the value in the n-th column in the 3rd from the last row in the file on a chart? Date: Thu, 19 Jul 2012 08:13:22 -0700 (PDT) Organization: http://groups.google.com Lines: 20 Message-ID: <394aff7c-e600-4d04-8077-fa09f16a1ebe@googlegroups.com> References: <4cbe6f01-15ae-4e98-8f87-1975d57b4b5a@googlegroups.com> NNTP-Posting-Host: 68.171.143.241 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1342710880 18217 127.0.0.1 (19 Jul 2012 15:14:40 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 19 Jul 2012 15:14:40 +0000 (UTC) Cc: sfeam@users.sourceforge.net In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=68.171.143.241; posting-account=aXvHDAoAAACxGpqfzAalYVozIuMdHcRf User-Agent: G2/1.0 X-Received-Bytes: 2063 Xref: csiph.com comp.graphics.apps.gnuplot:1282 On Thursday, July 19, 2012 10:45:52 AM UTC-4, sfeam wrote: > TonyG wrote: > > > I assume gnuplot 4.6 does not have a dedicated data file line > > addressing mechanism and I would have to use a script. So, how do I > > display a specific value copied from a specific file (generated by a > > script) on a chart (using, for example, the 'set label 1 sprintf("a = > > %3.4f", a) at 500,50' command, a situation described in the title of > > my post? > > > > Foo = system("tail -3 filename") > Labeltext = word(Foo,N) > set label 1 Labeltext at some_x, some_y At first, I jumped in joy at your suggestion (I was already fiddling with the 'system' command), but then, using your syntax on a Windows XP system--and similar expressions--I get gnuplot> load 'test.gp' "test.gp", line 15: warning: system evaluation not supported by MS-Windows 32 bit