just draw the 'old' point again for undefined data:
lastx = NaN ; lasty = NaN ; selection = 2
plot 'test.dat' using
you need gnuplot version 4.4
> Dear all,
> I want to plot specific rows of a datafile which have special values
> within the rows. This is possible for a point plot but for a lineplot I do
> not obtain a line between all points.
> An example to understand. I want to plot all rows with have a two in the
> second column. A corresponding datafile would look like this
> 1 2 1
> 2 2 4
> 3 1 9
> 4 2 16
> 5 1 25
> 6 2 36
> The corresponding plot command would be
> plot 'test.dat' using ($1):($2==2?$3:1/0) with linespoints
> The 1/0 would end up in a undefined value. The resulting plot has points
> for the values 1,2,4 and 6, but the line only is drawn from 1 to 2.
> How can I get the line between all points without a pre-processing of the
> Thanks for all answers in advance.
> Best regards
View this message in context: http://old.nabble.com/Conditional-plot-with-lines-tp26678688p26708064.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.