|
From: Hans-Bernhard B. <HBB...@t-...> - 2013-07-05 16:35:47
|
On 05.07.2013 11:53, Harald Servat wrote: > I found the solution in > > http://www.gnuplotting.org/plotting-single-points/ Not to discredit that site, but that's not "the" solution. It's one of several possible solutions, and not necessarily the best one either. > plot \ > 'file' using ((strcol(2) eq 'X' && $3 == 1) ? $4 / 1000000: NaN) > : $0 ti 'Group X (9)' w points, \ > "<echo '16'" using 1:$0 notitle with points; I would prefer either of the following plot \ 'file' using ((strcol(2) eq 'X' && $3 == 1) ? $4 / 1000000: NaN) : $0 ti 'Group X (9)' w points, \ "-" using 1:$0 notitle with points; 16 E This would be simpler and more portable ("< " special file support doesn't work on traditional Windows builds of gnuplot). Possibly even better: set label "" at 5,5 point pt 2 plot \ 'file' using ((strcol(2) eq 'X' && $3 == 1) ? $4 / 1000000: NaN) : $0 ti 'Group X (9)' w points |