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


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

Re: Plot datafiles in bulk

From Ethan A Merritt <EAMerritt@gmail.com>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Plot datafiles in bulk
Date 2016-06-07 21:49 -0700
Organization A noiseless patient Spider
Message-ID <nj885j$5u4$1@dont-email.me> (permalink)
References <1e061eba-f693-4eee-9f63-ce7809dc5f91@googlegroups.com> <nj7a4j$g5l$1@solani.org>

Show all headers | View raw


Karl Ratzsch wrote:

> Am 07.06.2016 um 21:22 schrieb explorat123@gmail.com:
>> Hi,
>> 
>> I'd like to plot multiple .csv files in bulk, regardless of their
>> names: 20151221-Log.csv
>> 20160315-Log.csv
>> 20160601-Log.csv
>> ...
> 
>> 
>> Is there an easy way to do this without having to specify the name
>> for each individual file and without having to join the files ?
> 
> 
> "plot" obviously does not support wild cards, but something like
> 
>    fnlist = system("ls *.csv")
>    n = words(fnlist)
>    fname = word(fnlist,i)
>    plot for [i=1:n] fname(i) using ....
> 
> could work.

Or
    fnlist = system("ls -1 *.csv")
    plot for [FILE in fnlist] FILE

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Plot datafiles in bulk explorat123@gmail.com - 2016-06-07 12:22 -0700
  Re: Plot datafiles in bulk Karl Ratzsch <mail.kfr@gmx.net> - 2016-06-07 22:17 +0200
    Re: Plot datafiles in bulk Ethan A Merritt <EAMerritt@gmail.com> - 2016-06-07 21:49 -0700
      Re: Plot datafiles in bulk Karl Ratzsch <mail.kfr@gmx.net> - 2016-06-08 10:34 +0200
  Re: Plot datafiles in bulk explorat123@gmail.com - 2016-06-09 13:13 -0700
    Re: Plot datafiles in bulk Karl Ratzsch <mail.kfr@gmx.net> - 2016-06-10 01:54 +0200
  Re: Plot datafiles in bulk explorat123@gmail.com - 2016-06-13 00:16 -0700
    Re: Plot datafiles in bulk Karl Ratzsch <mail.kfr@gmx.net> - 2016-06-13 09:26 +0200
  Re: Plot datafiles in bulk explorat123@gmail.com - 2016-06-17 03:39 -0700

csiph-web