I've got a datafile with NaNs. The plot is ok, but when I try to get GPVAL_DATA_Y_MIN I obtain 0.0 while the minimum value is in fact 420.0; when I substitute the NaNs by random numbers, then I get the right minimum, namely 420.0; so all I need is to enforce gnuplot to ignore NaNs when evaluating GPVAL_DATA_Y_MIN... is it possible ?
1.3 455.2
1.7 645.6
2.0 420.0
2.2 NaN
2.8 498.5
I've got a datafile with NaNs. The plot is ok, but when I try to get GPVAL_DATA_Y_MIN I obtain 0.0 while the minimum value is in fact 420.0; when I substitute the NaNs by random numbers, then I get the right minimum, namely 420.0; so all I need is to enforce gnuplot to ignore NaNs when evaluating GPVAL_DATA_Y_MIN... is it possible ?
1.3 455.2
1.7 645.6
2.0 420.0
2.2 NaN
2.8 498.5
Share
Improve this question
asked Mar 23 at 2:22
ifffamifffam
1879 bronze badges
3
|
1 Answer
Reset to default 0Just add
set datafile missing NaN
at the beginning of the script and fet about everything :)
Granted, you'll not get into the deepness of the mystery, but life moves on, time is money and much more :)
GPVAL_DATA_Y_MIN=0.0
. Without having your script it's difficult to make any tests and conclusions. – theozh Commented Mar 24 at 8:50