Suppose you want to plot the columns 1 and 3 of three different data files.
In your gnuplot script include:
set macro
MACRO = "datafile using 1:3"
Then you can modify the value of datafile within the script
datafile="file1.txt"
plot @MACRO
pause(-1)
datafile="file2.txt"
plot @MACRO
pause(-1)
datafile="file3.txt"
plot @MACRO
pause(-1)
No comments:
Post a Comment