|
From: Morten L. <mor...@no...> - 2012-12-17 09:51:40
|
Hi,
I have a data file with several data sets (separated by double blank
lines). The number of data sets is unknown on beforehand. I would like
to create a separate plot of each of these (different color and title).
An example in the manual (p. 80) showed me how to get a separate color
for each data set:
plot "test.txt" using 6:5:(column(-2) + 1) with points linecolor
variable title sprintf("Iteration: %d", (column(-2) + 1))
But it seems like this is just one plot with one title - matching the
last data set. I have managed to get multiple plots using an iteration,
but then I have to specify the exact number of iterations:
plot for [i=0:1] "test.txt" index i using 6:5:(column(-2) + 1) with
points linecolor variable title sprintf("Iteration: %d", i + 1)
Is it possible to have separate plots per data set, without iterating
over the data before plotting and counting the number of data sets?
Thanks,
Morten
|