Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  nodelist  faq  login

Another megabytes the dust.


computers / comp.graphics.apps.gnuplot / How do i pipe data to gnuplot/no-fifo and plot the data on the fly

SubjectAuthor
* How do i pipe data to gnuplot/no-fifo and plot the data on the flyVeek M
+- Re: How do i pipe data to gnuplot/no-fifo and plot the data on the flyGavin Buxton
`- Re: How do i pipe data to gnuplot/no-fifo and plot the data on theVeek M

1
Subject: How do i pipe data to gnuplot/no-fifo and plot the data on the fly
From: Veek M
Newsgroups: comp.graphics.apps.gnuplot
Organization: A noiseless patient Spider
Date: Sun, 16 Feb 2020 02:18 UTC
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: vee...@dont-use-this.com (Veek M)
Newsgroups: comp.graphics.apps.gnuplot
Subject: How do i pipe data to gnuplot/no-fifo and plot the data on the fly
Date: Sun, 16 Feb 2020 02:18:54 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <r2a8qe$mvp$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 16 Feb 2020 02:18:54 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="197383e99db4c5a00f53a0e835337b5f";
logging-data="23545"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+PiECNsicr8RL8vCyWug9l"
User-Agent: Pan/0.145 (Duplicitous mercenary valetism; d7e168a
git.gnome.org/pan2)
Cancel-Lock: sha1:1EEXFJ2pPvI+fKoitsX7UlVhCz4=
View all headers
my output is

42.0 27.8 29.8 43.0 42.0 43.0
42.0 27.8 29.8 43.0 42.0 43.0

while true; do
   sensors|egrep -o ' \+[0-9]{2}\.[0-9]+°C '|tr -d ' +°C'|tr -s '\n' ' ';
   echo; sleep 1;
done|gnuplot -p -e '
  set xrange [0:60];
  set yrange [20:80];
  while (1) {
    plot "-" using 1:2, "" using 1:3; pause 1; reread;
  }'

just blocks.
while true; do sensors|egrep -o ' \+[0-9]{2}\.[0-9]+°C '|tr -d ' +°C'|tr -
s '\n' ' '; echo; sleep 1; done|gnuplot -p -e 'plot "-" using 1:2, ""
using 1:3'

So I tried
echo 20 40 60|gnuplot -p -e 'set xrange [0:60]; set yrange [20:80]; plot
"-" using 1:2, "" using 1:3'
line 1: warning: Skipping data file with no valid points

why is that?


Subject: Re: How do i pipe data to gnuplot/no-fifo and plot the data on the fly
From: Gavin Buxton
Newsgroups: comp.graphics.apps.gnuplot
Date: Sun, 16 Feb 2020 13:59 UTC
References: 1
X-Received: by 2002:ae9:f711:: with SMTP id s17mr10453205qkg.238.1581861572526;
Sun, 16 Feb 2020 05:59:32 -0800 (PST)
X-Received: by 2002:aca:5254:: with SMTP id g81mr7543546oib.61.1581861572066;
Sun, 16 Feb 2020 05:59:32 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder7.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.graphics.apps.gnuplot
Date: Sun, 16 Feb 2020 05:59:31 -0800 (PST)
In-Reply-To: <r2a8qe$mvp$1@dont-email.me>
Complaints-To: groups-abuse@google.com
Injection-Info: google-groups.googlegroups.com; posting-host=24.3.60.64; posting-account=yC8mVwkAAADuRBqBIdPVfec50l5EMdYn
NNTP-Posting-Host: 24.3.60.64
References: <r2a8qe$mvp$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <054358c2-8c1a-4a03-a5ee-5e5f88b7b8f8@googlegroups.com>
Subject: Re: How do i pipe data to gnuplot/no-fifo and plot the data on the fly
From: gavinbux...@gmail.com (Gavin Buxton)
Injection-Date: Sun, 16 Feb 2020 13:59:32 +0000
Content-Type: text/plain; charset="UTF-8"
View all headers
Sorry, tbh I'm not following. Usually I dump data to a file and pipe commands to gnuplot to plot the file. That's pretty easy to do, if that would help?


Subject: Re: How do i pipe data to gnuplot/no-fifo and plot the data on the fly
From: Veek M
Newsgroups: comp.graphics.apps.gnuplot
Organization: A noiseless patient Spider
Date: Tue, 18 Feb 2020 14:42 UTC
References: 1
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: vee...@dont-use-this.com (Veek M)
Newsgroups: comp.graphics.apps.gnuplot
Subject: Re: How do i pipe data to gnuplot/no-fifo and plot the data on the
fly
Date: Tue, 18 Feb 2020 14:42:17 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <r2gt49$erb$1@dont-email.me>
References: <r2a8qe$mvp$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 18 Feb 2020 14:42:17 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="d6b35c60fc1fc51a6f2702669191110c";
logging-data="15211"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX199HdYhmhybxRmw29OWZhJM"
User-Agent: Pan/0.145 (Duplicitous mercenary valetism; d7e168a
git.gnome.org/pan2)
Cancel-Lock: sha1:zAD2BQ/SiaRof8mzsCX6vDm4voI=
View all headers
( seq 1 10 )|gnuplot -p -e 'set xrange [0:100]; set yrange [0:100];
while(1) { plot "<&3" using ($0):1 every ::::3:0; pause 10; replot; }' 3</
dev/stdin

Something like this works but only just.. basically you got to manually
pipe the data using some gnuplot specific syntax not to mention the
redirect to fd in bash
plot "<&3"


1
rocksolid light 0.7.2
clearneti2ptor