I have multiple data files in a directory and want to generate one plot from all of them. Every datafile has an own columnhead (set key autotitle columnhead).
It works when I plot one graph (one "using") statement. If I have multiple using statements, only the first is plotted correctly, for the others only the first datapoint is processed (only one label, one yerrorbars, but 5 linepoints)
gnuplot statements:
set key autotitle columnhead
files = system("echo $(ls *.csv)")
plot for [i=1:words(files)] word(files,i) using 0:2:xtic(1) with lp ,\
'' using 0:2:2 with labels font ',8' offset 1,0.5 notitle "",\
'' using 0:2:3 with yerrorbars lt -1 lc rgb 'grey' title ""
If I only plot labels or only yerrorbars they are also correct, it's only broken when I'm using multiple "using" statements with "plot for".
Anybody have an idea what I'm doing wrong?
Gnuplot version: 4.6.5
thanks a lot (gnuplot is driving me crazy)
.csvfiles contain?