I would like to do a splot using instead of a traditional 3 columns data file, a one column data file and the others two columns defined inside gnuplot. I have:
array r1[22554]
array r2[22554]
k=0
do for [j=1:179] {
do for [i=1:126] {
k=k+1
r1[k]=i
r2[k]=j
}
}
do for [i=1:10000:10] {
j=i/10
outfile = sprintf('pop%06.0f.png',j)
set output outfile
splot "file.txt" index i u r1:r2:1 w l palette
}
But this last line doesn't work. How can I specify the I want to make the plot using X and Y from my vectors and Z from the file?
Thank you very much in advance
Cayo Gonçalves
file.txt
look like? 1000 lines or 10000 lines? With or without double empty lines? Please describe the strucure of yourfile.txt
or give a few example lines. Which line of your file should go together with which x and y value? - theozh