Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  nodelist  faq  login

Win95 is not a virus; a virus does something. -- unknown source


computers / comp.graphics.apps.gnuplot / Newb question

SubjectAuthor
* Newb questionDavid Partridge
`* Re: Newb questionOlaf Schultz
 `* Re: Newb questionDavid Partridge
  `- Re: Newb questionJörg_Buchholz

1
Subject: Newb question
From: David Partridge
Newsgroups: comp.graphics.apps.gnuplot
Date: Tue, 7 Sep 2021 11:04 UTC
X-Received: by 2002:a37:ea0c:: with SMTP id t12mr14875910qkj.509.1631012684981;
Tue, 07 Sep 2021 04:04:44 -0700 (PDT)
X-Received: by 2002:a25:b3c9:: with SMTP id x9mr23143007ybf.514.1631012684787;
Tue, 07 Sep 2021 04:04:44 -0700 (PDT)
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: Tue, 7 Sep 2021 04:04:44 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=185.108.105.50; posting-account=_GXlJgkAAAB1VeH1q7meY52ClkyHnQHd
NNTP-Posting-Host: 185.108.105.50
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6896eea2-e0ec-4606-89c7-bfa5e8cbc8e9n@googlegroups.com>
Subject: Newb question
From: david.pa...@perdrix.co.uk (David Partridge)
Injection-Date: Tue, 07 Sep 2021 11:04:44 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 7
View all headers
I tried to find this out from the "friendly manual", but failed - too overwhelmed by information.

I want GNUPlot to process a CSV whose 1st record provides "metadata" about the remainder of the data in the file (test conditions to be added as annotations to the plot).

Is this easy to do?  If so a pointer to a working example or tutorial for this would be hugely helpful.

Thanks
David


Subject: Re: Newb question
From: Olaf Schultz
Newsgroups: comp.graphics.apps.gnuplot
Date: Tue, 7 Sep 2021 11:51 UTC
References: 1
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: o.schu...@enhydralutris.de (Olaf Schultz)
Newsgroups: comp.graphics.apps.gnuplot
Subject: Re: Newb question
Date: Tue, 7 Sep 2021 13:51:36 +0200
Lines: 26
Message-ID: <ipp228Fi2enU1@mid.individual.net>
References: <6896eea2-e0ec-4606-89c7-bfa5e8cbc8e9n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Trace: individual.net hvvAISSDNmDWLH5wETHUQgrK4qU6zrREpS3II8y+rAoLxeZYnO
Cancel-Lock: sha1:N2Z4w/beLEqCsFKD1mnETYSCAbw=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.0.3
Content-Language: de-DE
In-Reply-To: <6896eea2-e0ec-4606-89c7-bfa5e8cbc8e9n@googlegroups.com>
View all headers
On 9/7/21 13:04, David Partridge wrote:
I tried to find this out from the "friendly manual", but failed - too overwhelmed by information.

I want GNUPlot to process a CSV whose 1st record provides "metadata" about the remainder of the data in the file (test conditions to be added as annotations to the plot).

Is this easy to do?  If so a pointer to a working example or tutorial for this would be hugely helpful.

Thanks
David


Moin, perhaps

try it with "with labels"

http://gnuplot.sourceforge.net/demo/

espacially

http://gnuplot.sourceforge.net/demo/datastrings.html

is a good hint for you.

Greetings,

Olaf


Subject: Re: Newb question
From: David Partridge
Newsgroups: comp.graphics.apps.gnuplot
Date: Wed, 8 Sep 2021 08:11 UTC
References: 1 2
X-Received: by 2002:a0c:f3ce:: with SMTP id f14mr2622238qvm.33.1631088719414;
Wed, 08 Sep 2021 01:11:59 -0700 (PDT)
X-Received: by 2002:a25:2286:: with SMTP id i128mr3665623ybi.172.1631088719209;
Wed, 08 Sep 2021 01:11:59 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!border1.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, 8 Sep 2021 01:11:58 -0700 (PDT)
In-Reply-To: <ipp228Fi2enU1@mid.individual.net>
Injection-Info: google-groups.googlegroups.com; posting-host=185.108.105.50; posting-account=_GXlJgkAAAB1VeH1q7meY52ClkyHnQHd
NNTP-Posting-Host: 185.108.105.50
References: <6896eea2-e0ec-4606-89c7-bfa5e8cbc8e9n@googlegroups.com> <ipp228Fi2enU1@mid.individual.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a89a3cbd-7fbf-4b0e-b040-c76c8c00a27fn@googlegroups.com>
Subject: Re: Newb question
From: david.pa...@perdrix.co.uk (David Partridge)
Injection-Date: Wed, 08 Sep 2021 08:11:59 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 30
View all headers
On Tuesday, September 7, 2021 at 12:51:40 PM UTC+1, Olaf Schultz wrote:
On 9/7/21 13:04, David Partridge wrote:
I tried to find this out from the "friendly manual", but failed - too overwhelmed by information.

I want GNUPlot to process a CSV whose 1st record provides "metadata" about the remainder of the data in the file (test conditions to be added as annotations to the plot).

Is this easy to do? If so a pointer to a working example or tutorial for this would be hugely helpful.

Thanks
David

Moin, perhaps

try it with "with labels"

http://gnuplot.sourceforge.net/demo/

espacially

http://gnuplot.sourceforge.net/demo/datastrings.html

is a good hint for you.

Greetings,

Olaf
Not really as there wasn't any explanation of what was happening.  Lets try this with a different approach.  What if the first record is a comment line and therefore csv metadata.

Is there a way to get GNUPlot to display that comment line as a caption?

D.


Subject: Re: Newb question
From: Jörg_Buchholz
Newsgroups: comp.graphics.apps.gnuplot
Organization: A noiseless patient Spider
Date: Thu, 9 Sep 2021 07:51 UTC
References: 1 2 3
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: bookwood...@freenet.de (Jörg_Buchholz)
Newsgroups: comp.graphics.apps.gnuplot
Subject: Re: Newb question
Date: Thu, 9 Sep 2021 09:51:37 +0200
Organization: A noiseless patient Spider
Lines: 57
Message-ID: <shcee7$7lh$1@dont-email.me>
References: <6896eea2-e0ec-4606-89c7-bfa5e8cbc8e9n@googlegroups.com>
<ipp228Fi2enU1@mid.individual.net>
<a89a3cbd-7fbf-4b0e-b040-c76c8c00a27fn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 9 Sep 2021 07:51:35 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="35059f879cef45d0b3d4c2e8275518ea";
logging-data="7857"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/iZJIatSt+32NIHgWyimex8gj3UCU4Ito="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
Cancel-Lock: sha1:J2uFimqtSac4LcKfM6I693NRN98=
In-Reply-To: <a89a3cbd-7fbf-4b0e-b040-c76c8c00a27fn@googlegroups.com>
Content-Language: en-GB
View all headers
On 08.09.2021 10:11, David Partridge wrote:
On Tuesday, September 7, 2021 at 12:51:40 PM UTC+1, Olaf Schultz wrote:
On 9/7/21 13:04, David Partridge wrote:
I tried to find this out from the "friendly manual", but failed - too overwhelmed by information.

I want GNUPlot to process a CSV whose 1st record provides "metadata" about the remainder of the data in the file (test conditions to be added as annotations to the plot).

Is this easy to do? If so a pointer to a working example or tutorial for this would be hugely helpful.

Thanks
David

Moin, perhaps

try it with "with labels"

http://gnuplot.sourceforge.net/demo/

espacially

http://gnuplot.sourceforge.net/demo/datastrings.html

is a good hint for you.

Greetings,

Olaf
Not really as there wasn't any explanation of what was happening.  Lets try this with a different approach.  What if the first record is a comment line and therefore csv metadata.

Is there a way to get GNUPlot to display that comment line as a caption?

D.

Hi David

as a example, if your datafile is something like this and named "data.dat":

This is the title
1   2
1   3
1   4
1   5
2   1


Than you can do the following and you have a plot with "This is the
title" as the title.

set datafile separator ";"
set term unknow
plot 'data.dat' every ::0::0  using (textVar=stringcolumn(1),0)
set title textVar
set datafile separator whitespace
set term qt
plot 'data.dat' skip 1 u 1:2

Jörg


1
rocksolid light 0.7.2
clearneti2ptor