When use the ternary operator to skip bad data values, the plot has a break in the line between the good points in the data. This is the same as if the data file has a blank line in it. The ternary works well for plotting only the data that I am interested in plotting. Is there a way to have the plots drawn with continuous lines through these dropped points?
gnuplot> plot "-" using 1:(($3==3)?$2:1/0) with linespoints
1 1 3
2 2 3
3 3 4 # This line has bad data in it that I want to skip
4 4 3
5 5 3
e
Thanks,
Michael
You can tell gnuplot to treat undefined data, such as 1/0, as missing data. Missing data is not plotted and does not leave a gap. See
help missing
.