Path: csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: sfeam 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? Followup-To: comp.graphics.apps.gnuplot Date: Thu, 19 Jul 2012 07:45:52 -0700 Organization: gnuplot development team Lines: 13 Message-ID: References: <4cbe6f01-15ae-4e98-8f87-1975d57b4b5a@googlegroups.com> Reply-To: sfeam@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Injection-Date: Thu, 19 Jul 2012 14:45:53 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="de68407e1e0278021e2f738a9cf7b10c"; logging-data="29018"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/4e/O6oKd2iAFtC6Uu7aaW" User-Agent: KNode/4.4.9 Cancel-Lock: sha1:BY0rWuzuBWfRzpuY9x7ySDZqADk= Xref: csiph.com comp.graphics.apps.gnuplot:1281 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