Plotting 2 series from one data set in gnuplot?

I found a soluton myself: plot "hits. Log" using 1:(stringcolumn(2) eq "Server1"? $3 : 1/0) title 'Server1' with lines,\ "hits.

Log" using 1:(stringcolumn(2) eq "Server2"? $3 : 1/0) title 'Server2' with lines.

2 Here's info (for others) on the "1/0" core of this solution: From the manual "The integer expression "1/0" may be used to generate an "undefined" flag, which causes a point to ignored; the ternary operator gives an example. Or you can use the pre-defined variable NaN to achieve the same result. " – neillb May 7 at 0:57 @nellib, do you know if it is possible to plot several series if number of series is not known beforehand?I.e.

Server1 .. ServerN where is N is variable. – Andrey Adamovich May 7 at 7:30 1 I don't know a nice way. You could pre-process the file to sort and space it into a data set for each server, or of course to your own solution you could add plot clauses one for each possible server (yuck!) assuming you know your max N and it's not huge.

In the past for this I have written a (ruby) script to inspect the data file and generate the gnuplot plot command accordingly. There's likely a better way. You could add the "up to variable N" problem to your original question (as a bonus part) so more people see it.

– neillb May 7 at 12:13 @nellib, thanks for your comment. I did something similar eventually by creating a perl script. – Andrey Adamovich May 7 at 19:22.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions