Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #1290

Re: How to display the value in the n-th column in the 3rd from the last row in the file on a chart?

From TonyG <tgozdz@gmail.com>
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 2012-07-21 08:19 -0700
Organization http://groups.google.com
Message-ID <0e24024a-ff3f-4dbb-a272-228dc889bc84@googlegroups.com> (permalink)
References <4cbe6f01-15ae-4e98-8f87-1975d57b4b5a@googlegroups.com> <ju96j0$saq$1@dont-email.me> <394aff7c-e600-4d04-8077-fa09f16a1ebe@googlegroups.com> <ju9qtf$47c$1@dont-email.me>

Show all headers | View raw


On Thursday, July 19, 2012 4:32:45 PM UTC-4, sfeam wrote:
> TonyG wrote:
> 
> &gt; On Thursday, July 19, 2012 10:45:52 AM UTC-4, sfeam wrote:
> &gt;&gt; TonyG wrote:
> &gt;&gt; 
> &gt;&gt; &amp;gt; I assume gnuplot 4.6 does not have a dedicated data file line
> &gt;&gt; &amp;gt; addressing mechanism and I would have to use a script.  So, how do I
> &gt;&gt; &amp;gt; display a specific value copied from a specific file (generated by a
> &gt;&gt; &amp;gt; script) on a chart (using, for example, the &amp;#39;set label 1
> &gt;&gt; sprintf(&amp;quot;a = &amp;gt; %3.4f&amp;quot;, a) at 500,50&amp;#39; command, a
> &gt;&gt; situation described in the title of &amp;gt; my post?
> &gt;&gt; 
> &gt;&gt; 
> &gt;&gt; 
> &gt;&gt; Foo = system(&amp;quot;tail -3 filename&amp;quot;)
> &gt;&gt; Labeltext = word(Foo,N)
> &gt;&gt; set label 1 Labeltext at some_x, some_y
> &gt; 
> &gt; At first, I jumped in joy at your suggestion (I was already fiddling with
> &gt; the &#39;system&#39; command), but then, using your syntax on a Windows XP
> &gt; system--and similar expressions--I get
> &gt; 
> &gt; gnuplot&gt; load &#39;test.gp&#39;
> &gt;          &quot;test.gp&quot;, line 15: warning: system evaluation not supported by
> &gt;          MS-Windows 32 bit
> 
> That error message is very misleading.  The actual problem is that the 
> executable you are running was built without support for pipes.
> 
> I&#39;m not a Windows user so I may have the details wrong, but my understanding
> is that older gnuplot versions provided multiple Windows binaries with
> different levels of pipe support.  The pipe-capable variants had names like
> &quot;pgnuplot.exe&quot; or &quot;wgnuplot_pipes.exe&quot;.  More recent versions of gnuplot can be 
> built for Windows to provide a unified console-based executable called simply
> &quot;gnuplot.exe&quot; that does support pipes.  I suggest you poke around a bit further
> to see what options your particular installed version offers.

You are absolutely correct; gnuplot_pipes.exe, a part of the 4.6 Windows distribution, does the pipes perfectly well.  I'm trying to find what it is NOT doing well...  

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Find similar


Thread

How to display the value in the n-th column in the 3rd from the last row in the file on a chart? TonyG <tgozdz@gmail.com> - 2012-07-19 04:07 -0700
  Re: How to display the value in the n-th column in the 3rd from the last row in the file on a chart? sfeam <sfeam@users.sourceforge.net> - 2012-07-19 07:45 -0700
    Re: How to display the value in the n-th column in the 3rd from the last row in the file on a chart? TonyG <tgozdz@gmail.com> - 2012-07-19 08:13 -0700
      Re: How to display the value in the n-th column in the 3rd from the last row in the file on a chart? sfeam <sfeam@users.sourceforge.net> - 2012-07-19 13:32 -0700
        Re: How to display the value in the n-th column in the 3rd from the last row in the file on a chart? TonyG <tgozdz@gmail.com> - 2012-07-21 08:19 -0700

csiph-web