From: <us...@be...> - 2014-04-24 08:34:14
|
Zitat von pl...@pi...: > On 04/23/14 20:47, Ethan A Merritt wrote: > > What is the most consistent with a terminal plot ? Terminals produce no > output for NaN points. Producing no output into the table would seem to > be the best equivalent to me. That is the behaviour I was expecting , at > least. > > There may be a case for outputting NaN in column 1 and the expression in > col 2 but this could fail , for example , if I was doing the NaN trick > to prevent evaluation of the expression in a range where it would fail. > > f(x)=1/x; > plot datafile using (($1<0)?$1:NaN):(2 * f($1)) > > so perhaps NaN NaN ?? > > I think no output is the most consistent with no point in a plot unless > someone can see something I've missed. I do also agree with you, that no output is more consistent. Because you're talking about the NaN trick, I would like to raise a related discussion: I've been thinking about a new option which allows to treat NaN or 1/0 as missing instead of invalid data points. That would improve the possibilities to filter data in gnuplot and still being able to plot them with lines. I think that won't be much work, but how could such an option be called? Christoph |