|
From: <pl...@pi...> - 2014-11-04 21:55:22
|
On 11/04/14 17:26, Allin Cottrell wrote: > On Tue, 4 Nov 2014, pl...@pi... wrote: > > [...] >> >> What is the correct way to trap this condition? >> >> (isNaN($2)) undefined function: isNaN >> ($2==NaN) never true >> ($2==0) not true for NaN in col 2 >> (exists($2) always true, even for NaN >> >> Is there currently a test condition that will trap NaN in the datafile ? > > If it works like C, the test $2!=$2 should do it. A NaN tests as not > equal to itself! > > Allin Cottrell > Thanks. In principal you are correct gnuplot > print NaN==NaN 0 But it does not work inside plot, it's another "not true for NaN in col 2" case. So it seems that there is currently no way to trap this condition. Clearly not good. I'll have to wait until Ethan comes up with something and update my CVS. Peter. |