Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #2844
| Newsgroups | comp.graphics.apps.gnuplot |
|---|---|
| Date | 2015-03-26 11:47 -0700 |
| Message-ID | <4ebd80ff-61a2-473c-bead-88a239bdf362@googlegroups.com> (permalink) |
| Subject | importing list off files |
| From | s0198362 <adrian.h.hill@gmail.com> |
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 | Next — Next in thread | Find similar | Unroll 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