Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  nodelist  faq  login

I'm all for computer dating, but I wouldn't want one to marry my sister.


computers / comp.graphics.apps.gnuplot / Using data from comment lines

SubjectAuthor
* Using data from comment linesDavid Partridge
`* Re: Using data from comment linesDavid Partridge
 `- Re: Using data from comment linesDavid Partridge

1
Subject: Using data from comment lines
From: David Partridge
Newsgroups: comp.graphics.apps.gnuplot
Date: Mon, 27 Dec 2021 13:52 UTC
X-Received: by 2002:a05:6214:2583:: with SMTP id fq3mr15086788qvb.94.1640613136545;
Mon, 27 Dec 2021 05:52:16 -0800 (PST)
X-Received: by 2002:a05:6902:1007:: with SMTP id w7mr22874154ybt.718.1640613136381;
Mon, 27 Dec 2021 05:52:16 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.graphics.apps.gnuplot
Date: Mon, 27 Dec 2021 05:52:16 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=185.108.105.52; posting-account=_GXlJgkAAAB1VeH1q7meY52ClkyHnQHd
NNTP-Posting-Host: 185.108.105.52
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3fe0c4f0-cb2a-472b-b551-20e61f4c5a06n@googlegroups.com>
Subject: Using data from comment lines
From: david.pa...@perdrix.co.uk (David Partridge)
Injection-Date: Mon, 27 Dec 2021 13:52:16 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 21
View all headers
Given a file that starts like this:

# Date/Time 2021/12/22, 10:52:53
# PonE=0,LsKp=200,LsKi=0,LsKd=250,HsKp=40,HsKi=0,HsKd=130,Sp=800,TDEC=1175137
#
# Rel. Time, currentPos, PosPID, currentSpeed, speedPID, Lag, ServoPos
0.00000,4693184,0,0,0,0,4693184
0.00000,4693184,2300,0,368,0,4693184

I would like to display the date and time as Centred Text at the top of the plot, and to display the link that starts PonE as a caption (maybe top right).   As bonus I've like to take the value following TDEC= and use that to draw a horizontal line marked as "Target".

The following lines contain the data to be plotted.

Some help in achieving that will be most welcome with explanations I can understand ...  I'm still struggling with the manual.

Thanks
David


Subject: Re: Using data from comment lines
From: David Partridge
Newsgroups: comp.graphics.apps.gnuplot
Date: Mon, 27 Dec 2021 13:54 UTC
References: 1
X-Received: by 2002:a05:6214:dcf:: with SMTP id 15mr15153443qvt.47.1640613292563;
Mon, 27 Dec 2021 05:54:52 -0800 (PST)
X-Received: by 2002:a25:c41:: with SMTP id 62mr20641237ybm.748.1640613292422;
Mon, 27 Dec 2021 05:54:52 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.graphics.apps.gnuplot
Date: Mon, 27 Dec 2021 05:54:52 -0800 (PST)
In-Reply-To: <3fe0c4f0-cb2a-472b-b551-20e61f4c5a06n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=185.108.105.52; posting-account=_GXlJgkAAAB1VeH1q7meY52ClkyHnQHd
NNTP-Posting-Host: 185.108.105.52
References: <3fe0c4f0-cb2a-472b-b551-20e61f4c5a06n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f83f2329-3bae-43a4-8e00-689e3d78918an@googlegroups.com>
Subject: Re: Using data from comment lines
From: david.pa...@perdrix.co.uk (David Partridge)
Injection-Date: Mon, 27 Dec 2021 13:54:52 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 4
View all headers
On Monday, December 27, 2021 at 1:52:17 PM UTC, David Partridge wrote:
display the link that starts PonE as a caption (maybe top right).

Sorry that should have read "the line that starts # PonE"



Subject: Re: Using data from comment lines
From: David Partridge
Newsgroups: comp.graphics.apps.gnuplot
Date: Wed, 29 Dec 2021 12:05 UTC
References: 1 2
X-Received: by 2002:ac8:538d:: with SMTP id x13mr22307881qtp.648.1640779547787;
Wed, 29 Dec 2021 04:05:47 -0800 (PST)
X-Received: by 2002:a25:770f:: with SMTP id s15mr15128833ybc.751.1640779547535;
Wed, 29 Dec 2021 04:05:47 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.graphics.apps.gnuplot
Date: Wed, 29 Dec 2021 04:05:47 -0800 (PST)
In-Reply-To: <f83f2329-3bae-43a4-8e00-689e3d78918an@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=185.108.105.52; posting-account=_GXlJgkAAAB1VeH1q7meY52ClkyHnQHd
NNTP-Posting-Host: 185.108.105.52
References: <3fe0c4f0-cb2a-472b-b551-20e61f4c5a06n@googlegroups.com> <f83f2329-3bae-43a4-8e00-689e3d78918an@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <22b42ef5-1c15-4d03-8064-1d0550c65f93n@googlegroups.com>
Subject: Re: Using data from comment lines
From: david.pa...@perdrix.co.uk (David Partridge)
Injection-Date: Wed, 29 Dec 2021 12:05:47 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 7
View all headers
On Monday, December 27, 2021 at 1:54:53 PM UTC, David Partridge wrote:
On Monday, December 27, 2021 at 1:52:17 PM UTC, David Partridge wrote:
display the link that starts PonE as a caption (maybe top right).
Sorry that should have read "the line that starts # PonE"

So if the line with the date/time and test conditions (line starting "# PonE") can't be comments

How would that work?


1
rocksolid light 0.7.2
clearneti2ptor