|
From: atoms.h <tho...@gm...> - 2013-09-19 11:51:37
|
Hi,
I'm trying to make use of the iteration feature, so far unsuccessfully. I
want to plot files in different directories with the same file name. All in
one pdf documents. The way I construct my paths is by means of string
variables:
$ basefolder = '../data/scalePr/'
$ folder1 = '0.90'
$ folder2 = '0.95'
$ folder3 = '0.97'
$ folder4 = '1.00'
$ file1 = basefolder.folder1."/".filename.".dat"
$ file2 = basefolder.folder2."/".filename.".dat"
$ file3 = basefolder.folder3."/".filename.".dat"
$ file4 = basefolder.folder4."/".filename.".dat"
I haven't figured out a way to iterate through variable names like
$ file(n) = basefolder.folder.sprintf("%d",n)."/".filename.".dat"
(which obviously doesn't work) to be able to do multiple plots in one
command:
$ do for [i=1:4]{
$ splot file(i)
$ }
If anyone has an idea how to iterate variable names it would be most
appreciated!
Kind regards,
Thomas
--
View this message in context: http://gnuplot.10905.n7.nabble.com/string-variables-and-iteration-gnuplot-4-6-tp17670.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|