I have a set of data in a text file (X,Y coordinates which are not sorted).
I want to plot it using
gnuplot and connect plotted points using lines.
plot "a.txt" with lines
but it is connecting the first point to the second point and so on. I want it to just connect plotted points, not first to second, and so on.