From: Paul B. <pb...@gm...> - 2010-03-24 08:17:57
|
Hi, i would like to plot some data from a data aquisition system. If a sensor breaks or data validation fails it will output a value of -9999.99. Plots work fine, except when i have only -9999.99 values in a column. Then i get the following errors: "def.gnuplot", line 9: warning: Skipping data file with no valid points "def.gnuplot", line 9: all points y value undefined! The script stops leaving the following plots undone. Is there any way to ignore those warnings and force gnuplot to print an empty plot? I think there were no warnings in former versions of gnuplot. I tried the folowing script on gnuplot 4.0 (solaris) and 4.2 (OSX) set terminal png small size 550,310 set xdata time set datafile missing "-9999.99" set timefmt '%H%M%S' set format x '%H:%M' set xrange set output '/foo/1.png' plot '/foo/foo.data' using 1:3 with lines lw 2 set output '/foo/2.png' plot '/foo/foo.data' using 1:2 with lines ls 1 data file: 000000 1 -9999.99 000100 2 -9999.99 000200 3 -9999.99 000300 4 -9999.99 000400 5 -9999.99 000500 6 -9999.99 000600 7 -9999.99 000700 8 -9999.99 000800 9 -9999.99 000900 10 -9999.99 Thanks Paul |