|
From: theozh <th...@gm...> - 2017-08-02 14:46:38
|
ok... maybe I simply loop all the files
"Data_<Index1>_<Index2>_<Index3>.dat"
with respect to the first two indices and put them all in one list per
plot. Additionally, in parallel I need to create a color list which
corresponds to <Index2>.
With this gnuplot checks [A...I] (9) x [a...f] (6) =54 times whether are
files existing. Not very elegant, but seems feasible...
Regular expressions in gnuplot might be nice e.g. to create sublists or
define the color from the filenames...
### gnuplot code
Index1 = [A B C D E F G H I]
Index2 = [a b c d e f]
ColorList = ""
AllFileList = ""
set multiplot layout 3,3
do for [iii = 1:words(Index1)] {
do for [jjj = 1:words(Index2)] {
FileList = system('dir /B /S Data_'.Index1.'_'.Index2.'_'*.dat')
do for [kkk = 1:words(FileList)] { ColorList = ColorList." ".jjj }
AllFileList = AllFileList." ".FileList
}
plot for [mmm = 1:words(AllFiles)] word(AllFiles,mmm) u 1:2 w l lc
word(ColorList,mmm) notitle
}
unset multiplot
### end gnuplot code
### Still needs to be tested when several files are not existing.
|