Plot datafiles in bulk

9 views
Skip to first unread message

sander peter

unread,
Jun 14, 2016, 4:20:38 PM6/14/16
to Gams to Gnuplot
Hi,

I'd like to plot multiple .csv files in bulk, regardless of their names:
20151221-Log.csv
20160315-Log.csv
20160601-Log.csv
...

Each of them contains data in the form:
1,18711,9501,888,0.00,2.19
2,18726,9501,897,0.00,2.19
3,18741,9501,900,0.00,2.17
...


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 ?

Something like:
 plot '*-Log.csv' u 1:2 ,  '' u 1:3
or even:
 plot '*.csv' u 1:2 ,  '' u 1:3

Thanks

Uwe Schneider

unread,
Jun 14, 2016, 4:29:45 PM6/14/16
to gnupl...@googlegroups.com
Hi,

it is possible but not easy.

I would script an additional $libinclude program to do this but I don't have the time right now to do it for you.

Am also not sure how the data should be plotted because your example shows 5 columns with numbers.

Best, Uwe
--
You received this message because you are subscribed to the Google Groups "Gams to Gnuplot" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gnuplotxyz+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Reply all
Reply to author
Forward
0 new messages