GNUPlot Manual
GNUPlot Manual
GNUPlot Manual
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
62 gnuplot 4.0 36 SET-SHOW<br />
set datafile missing {""}<br />
show datafile missing<br />
unset datafile<br />
Example:<br />
# Ignore entries containing IEEE NaN ("Not a Number") code<br />
set datafile missing "NaN"<br />
Example:<br />
set datafile missing "?"<br />
set style data lines<br />
plot ’-’<br />
1 10<br />
2 20<br />
3 ?<br />
4 40<br />
5 50<br />
e<br />
plot ’-’ using 1:2<br />
1 10<br />
2 20<br />
3 ?<br />
4 40<br />
5 50<br />
e<br />
plot ’-’ using 1:($2)<br />
1 10<br />
2 20<br />
3 ?<br />
4 40<br />
5 50<br />
e<br />
The first plot will recognize only the first datum in the "3 ?" line. It will use the single-datum-on-a-line<br />
convention that the line number is "x" and the datum is "y", so the point will be plotted (in this case<br />
erroneously) at (2,3).<br />
The second plot will correctly ignore the middle line. The plotted line will connect the points at (2,20)<br />
and (4,40).<br />
The third plot will also correctly ignore the middle line, but the plotted line will not connect the points<br />
at (2,20) and (4,40).<br />
There is no default character for missing, but in many cases any non-parsible string of characters found<br />
where a numerical value is expected will be treated as missing data.<br />
36.14.2 Set datafile separator<br />
The command set datafile separator "" tells gnuplot that data fields in subsequent input<br />
files are separated by rather than by whitespace. The most common use is to read in csv<br />
(comma-separated value) files written by spreadsheet or database programs. By default data fields are<br />
separated by whitespace.<br />
Syntax:<br />
set datafile separator {"" | whitespace}<br />
Examples:<br />
# Input file contains tab-separated fields<br />
set datafile separator "\t"<br />
# Input file contains comma-separated values fields<br />
set datafile separator ","