... and I want gnuplot to only display the points from rows 4,7 and 8.
normally in this kind of situation I, if I wanted to only display points with "5" in the third column I would do something like this (not sure if there is a cleaner way to reject points than setting the second output to 1/0):
booleantest(a,c)=c? a: 1/0
plot inputfiles using (booleantest($1,$3==5)):2 w p t "test"
How do I make a comparison to "nan"? is there a way to have a boolean operator comparing to a string?
Last edit: hidetzugu 2014-07-16
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I want to pick the points from two columns in a file that have nan on a third column. So the file looks like this:
... and I want gnuplot to only display the points from rows 4,7 and 8.
normally in this kind of situation I, if I wanted to only display points with "5" in the third column I would do something like this (not sure if there is a cleaner way to reject points than setting the second output to 1/0):
How do I make a comparison to "nan"? is there a way to have a boolean operator comparing to a string?
Last edit: hidetzugu 2014-07-16