I'm new on gnuplot.
Can anyone help me plot with condition?
I know there is something like if statement, but I have no idea
how to deal with it and it looks like it's not appropriate to what I want to do.
I have a data set like this,
6 1 3 -9
7 2 2 -9
5 2 2 4
4 3 5 5
5 4 1 3
3 4 1 -9
So I have 6 rows and 4 columns.
What I want to do is to plot a graph using ($1-$2):($3-$4),
but if an element in column 4 is -9, then the rows that have -9 won't be plotted.
Therefore, the graph will only show the data of row 3,4, and 5.
Plot 'text.txt' u ($1-$2):($3-$4)
How can I apply that concept on the above command?