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


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

importing list off files

X-Received by 10.182.246.67 with SMTP id xu3mr18382419obc.18.1427395677909; Thu, 26 Mar 2015 11:47:57 -0700 (PDT)
X-Received by 10.140.94.170 with SMTP id g39mr271784qge.34.1427395677883; Thu, 26 Mar 2015 11:47:57 -0700 (PDT)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!z20no597964igj.0!news-out.google.com!q90ni534qgd.1!nntp.google.com!z107no5011352qgd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.graphics.apps.gnuplot
Date Thu, 26 Mar 2015 11:47:57 -0700 (PDT)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=208.87.234.180; posting-account=Gg0r5goAAABhpZEOVkkV8XRdscKbrgEk
NNTP-Posting-Host 208.87.234.180
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <4ebd80ff-61a2-473c-bead-88a239bdf362@googlegroups.com> (permalink)
Subject importing list off files
From s0198362 <adrian.h.hill@gmail.com>
Injection-Date Thu, 26 Mar 2015 18:47:57 +0000
Content-Type text/plain; charset=ISO-8859-1
X-Received-Bytes 2174
X-Received-Body-CRC 1278904244
Xref csiph.com comp.graphics.apps.gnuplot:2844

Show key headers only | View raw


Hi there.  I have a couple of questions that I can't work out how to solve.  (I think I have got somewhere in this forum, but am still a little stuck.

Any help appreciated (using wgnuplot_pipes v. 4.6 in Windows 7)


1.  I am trying to plot a series of files that would be updated either daily or weekly.  The file name is e.g. 15-03-26.xy 15-03-27.xy etc.

The file format of the 8.xy is:

34.80000 647.000
34.80143 656.000
34.80285 712.000
34.80428 701.000
34.80570 669.000
34.80713 658.000
34.80855 627.000
34.80998 675.000


I have the following in my script, but can't seem to get it to work

LIST = system("ls -1 *.xy")
FILES = words(LIST)
FILE(i) = word(LIST,i)

plot for [i=1:FILES:1] FILE(i)


How do I plot (or even print the list) the various files I have?

2.  Obviously the files are named by the date they were created.  Can I extract that date and use it as a x axis in a second plot against the maximum value in that file?

The following gets the maximum value out of the last graph to be plotted.  Any way to get the date?

stats '' u 2 name 'latest'
print filename
set print 'test.txt' append
print latest_max

Many thanks

Adrian

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


Thread

importing list off files s0198362 <adrian.h.hill@gmail.com> - 2015-03-26 11:47 -0700
  Re: importing list off files Karl <mail.kfr@gmx.net> - 2015-03-27 11:24 +0100
  Re: importing list off files s0198362 <adrian.h.hill@gmail.com> - 2015-03-27 11:23 -0700

csiph-web